eventstore icon indicating copy to clipboard operation
eventstore copied to clipboard

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

Open slashdotdash opened this issue 5 years ago • 1 comments

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.

slashdotdash avatar May 26 '20 15:05 slashdotdash

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

esse avatar Apr 06 '22 16:04 esse