electric icon indicating copy to clipboard operation
electric copied to clipboard

Slow to respond concurrent requests for new shapes

Open msfstef opened this issue 1 year ago • 1 comments

When multiple concurrent requests for new shapes come in, requests and responses are all routed through the ShapeCache causing delays and flooding of the process mailbox. Requests can instead be routed to individual shape worker processes to handle their needs, like waiting for snapshots and requesting a log etc.

The goal is to move stuff off of the critical path of the requests and enable quick responses, even if the responses are 429s because of e.g. pool connection resource limitations.

msfstef avatar Oct 03 '24 07:10 msfstef

https://github.com/electric-sql/electric/pull/1787 should address sending requests directly to the shape workers

There's more work that's easily done to remove responsibilities from ShapeCache, but I'd rather do it after merging the above PR.

msfstef avatar Oct 03 '24 15:10 msfstef

Closing this as it has been addressed

msfstef avatar Oct 21 '24 13:10 msfstef