-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL support #799
Comments
@Vad1mo 👋 I came across this by chance and see you've referenced my write up on the topic of PG as a queue. If you find Go easy enough to read, you might benefit from reading the neoq source (https://github.com/acaloiaro/neoq) as a reference implementation for the ideas lain out in my post. The whole PG implementation is contained within: https://github.com/acaloiaro/neoq/blob/main/backends/postgres/postgres_backend.go Cheers! |
Found it already 👀 acaloiaro/neoq#70 🤣 |
I don't like an idea to poll DB for updates |
Yes, I was referring to listen/notify. No mention about polling. |
CDC available from any pg driver: asyncpg/psycopg/etc |
Hey guys! I really need it asap. R u planning to implement it in nearest future or should I search other tools for manage pg listen/notify queues? |
Sorry, I don't think, that we can add Postgres support this year. Probably, we can do it in the first half of 2025, but can't strongly promise 😢 |
Hey @Lancetnik I've built a simple PoC with the listen/notify approach (took a couple of hours, so not the best code quality) that shows the general idea – link If you are OK with this way, I would like to try to implement this feature. I'm still tinkering with the source code so if you can point places to start with it would be very helpful (if no - not a problem, just will spend a little bit more time reading the code). Thanks |
@mcproger Hi! Thank you a lot for your interest! I am appriciate any help with Postgres support and will be glad to work on it with you. But, can you wait for 0.6 release? I plan to unlock new brokers support after it and release SQS as a 0.7 one. Anyway, you can start to work on Postgres already basing on 0.6 branch - it is almost ready to release. To implement a new broker you should follow these steps
|
Is your feature request related to a problem? Please describe.
I am aware that PostgreSQL is now a Message Queue per se; however, it can be utilized as such. Many developers realize that it suffices for the majority of tasks, and it comes with zero added costs if a PostgreSQL db is present.
Describe the solution you'd like
Clearly and concisely describe the desired outcome or solution.
Feature code example
Nothing in particular
Describe alternatives you've considered
You can do exactly this with MySQL and SQL server too because they both support SKIP LOCKED.
Additional context
The text was updated successfully, but these errors were encountered: