Hacker News new | ask | show | jobs
by vbezhenar 1327 days ago
Introduce intermediate server which accepts multiple requests and groups them into single batch requests.

With enough trickery you can even implement it using postgres wire protocol, I guess, so it'll be transparent.

2 comments

Now you need to batch your requests to your intermediate server
No, you don't. You have one per 100 nodes or whatever. Not a single one for all nodes to talk to.
But why? Why have an additional component if your database can do it?
twawaaay claimed that similar approach allowed him to improve throughput by factor of 50. Apparently database couldn't do it efficiently in that case.