Skip to content

Comment on Globally Distributed Postgresparent

Comments

which 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)

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/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.