News for hackers. Stuff that matters.
Re:Run Ordinary Rails Apps Globally (2021) by damagednoob on Wednesday January 26, 2022 @08:25AM (#30085083)
Maybe I missed this in the link but I didn't see how one of the common problems in a distributed application is addressed:

* A POST request is redirected to the primary data source, the resource is created and the id is returned

* A GET request is immediately issued for that id but the resource that has not been replicated to the regional data source

* :boom:

Re:Run Ordinary Rails Apps Globally (2021) by allknowingfrog on Wednesday January 26, 2022 @09:59AM (#30086250)
The article touches on this "create-and-redirect-to-show" pattern at the end of the "It's not actually magic" section. https://fly.io/blog/run-ordinary-rails-apps-globally/#it-s-n...
Re:Run Ordinary Rails Apps Globally (2021) by mrkurt on Wednesday January 26, 2022 @09:21AM (#30085688)
Our Rails gem pins requests to the primary region until the data is replicated.

We talk about this more here: https://fly.io/blog/globally-distributed-postgres/