Queues + DO's + DB connections

I distribute load to multiple different unique DO's, where each one creates a new connection. I keep getting PostgresError: Max client connections reached. I was under the impression that after DB operations are done, it will automatically close the connection by itself. My thinking is to spawn a unique durable object for insertions, and to keep it alive throughout my distribution process so i can minimize the amount of connections it opens. Any advice?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server