Automatically switch to primary database with 'withReplicas' #4263
Unanswered
LaurinBrechter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the read replicas feature with the following configuration.
If my replica database isn't available for read operations, I just get an error and my app will stop working. Wouldn't it make more sense if drizzle detects the error and then automatically switches to the primary db (or maybe switches after some retries)? Or is this something my code needs to handle in something like a try catch?
Beta Was this translation helpful? Give feedback.
All reactions