Comment on Globally Distributed PostgresparentComments−viraptor5ywhich would require some minor adjustment in the app server code, isn't it?Yes, that's what the code fragment does:if e.cause.is_a?(PG::ReadOnlySqlTransaction)−frafra5yOk, so that's an example of how the app server code should look like, no middleware involved. Thank you!−mrkurt5yWe should have definitely linked to these docs, I appreciate you asking and it sounds like you all managed to figure everything out though:https://fly.io/docs/getting-started/multi-region-databases/
Comments
Yes, that's what the code fragment does:
Ok, so that's an example of how the app server code should look like, no middleware involved. Thank you!
We should have definitely linked to these docs, I appreciate you asking and it sounds like you all managed to figure everything out though:
https://fly.io/docs/getting-started/multi-region-databases/