Skip to content

Recovering from a connection interruption when using pgxpool #1415

Answered by benweint
benweint asked this question in Q&A
Discussion options

You must be logged in to vote

It turns out that my test case was poorly constructed (as mentioned above, I had left a call to pool.Reset() in it).

We've essentially resolved this issue in production by implementing a circuit-breaker pattern for DB queries, where >N consecutive failures results in fast-failing all DB queries for a brief period of time before trying again.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by benweint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant