Skip to content
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

Add polling option for subscriptions as a fallback when Postgres LISTEN / NOTIFY is unsupported #205

Open
slashdotdash opened this issue May 26, 2020 · 1 comment
Assignees

Comments

@slashdotdash
Copy link
Member

slashdotdash commented May 26, 2020

In certain environments Postgres’ built-in notification mechanism (LISTEN / NOTIFY) is not supported. This might be due to using an external connection pool, such as pgbouncer, or limitations of a managed Postgres service.

To support these environments a fallback polling option could be provided where newly appended events are queried at a regular interval and published to subscribers. This would add additional latency to subscribers dependent upon the pool interval, which should be configurable. A short polling interval would reduce latency but add load to the database.

@esse
Copy link
Contributor

esse commented Apr 6, 2022

any progress here? We're using commanded together with pgbouncer and it would make our life so much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants