Re:Run Ordinary Rails Apps Globally (2021)
by t_christensen on Wednesday January 26, 2022 @08:35AM
(#30085175)
I deployed a little side-project (https://thecitymapquiz.com) to fly.io yesterday. The deployment went really smooth, but friends testing it out complained their connection (websockets in Phoenix LiveView) dropped. It might be because its running on the cheapest VMs, I don't know yet.
That said, it was really satisfying seeing the application running in Seattle, Hong Kong, and Amsterdam within minutes after launch.
[ Parent
| on HN ]
Re:Run Ordinary Rails Apps Globally (2021)
by mrkurt on Wednesday January 26, 2022 @09:31AM
(#30085826)
This is probably a websockets bug that crops up during deploys – the connection breaks and reconnects keep getting sent to the now-gone VM for >60s. We're furiously rebuilding our service discovery plumbing because it's slow to propagate. I'm hoping we have the websockets issue fixed this week.
Re:Run Ordinary Rails Apps Globally (2021)
by t_christensen on Wednesday January 26, 2022 @09:40AM
(#30085945)
Sounds good. But I probably should implement something to store the state between websocket connections anyways. Loosing all progress when a connection drops is probably not optimal :-)
Re:Run Ordinary Rails Apps Globally (2021)
by KuiN on Wednesday January 26, 2022 @09:44AM
(#30085991)
A bit off topic, but your game's brilliant fun. Just did the worldwide one, got a semi-respectable 23/34. Funny how easy it is to identify North American cities vs European ones. Will definitely share with some friends, great work!
Re:Run Ordinary Rails Apps Globally (2021)
by t_christensen on Wednesday January 26, 2022 @09:58AM
(#30086219)
Thank you. I think 23 is pretty good - I have looked a lot on these maps during development and I only managed 24 after I deployed the site yesterday. I'm not really satisfied with the site yet, but I through it was time to find out if any other than me found it interesting - now there is at least one other than me :)