Replies: 1 comment 1 reply
-
@fcortes as of today, RIver uses While this is still prone to the global locking issue described in that article, it should be far less impactful if only happening for a small fraction of inserts. You can choose to run in We're also still thinking about alternatives because certain database drivers ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The people at recall.ai wrote an article (HN) about scaling issues they had when using LISTEN/NOTIFY. They give this TL;DR
They talk about having "tens of thousands of simultaneous writers" and a single use of
NOTIFY
on some critical path. Weirdly this combination of factors make the database stall while it is waiting for the notifications locks to clear up.The authors say they were able to replicate it but did not share the code. It may be a good idea to try to replicate it with
river bench
(or some variation of it) to check if this stalling happens when using pgx (which as I understand is the only driver that usesLISTEN/NOTIFY)
Has anyone experienced an issue like that?
Beta Was this translation helpful? Give feedback.
All reactions