Ask HN: How to host simple Rails API to get 99.99% uptime
I am looking to host a relatively simple Rails API. From a technical side the complexity is quite low but availability is crucial and should hopefully be 99.99% or better.
To keep the DevOps overhead low I am thinking about using DigitalOcean.
The current idea is
* Use the "App Platform" with multiple app instances that are load balanced through DO itself (unfortunately only within same region)
* Use managed Postres with multiple standby nodes (allows for "immediate automatic failover")
* Optionally replicate the app servers in a different region and use an external load balancer to fail over between regions (not possible within the App Platform itself)
Do you have any other / better ideas for a rather straightforward setup? I am trying to avoid AWS but am not completely opposed.
7 comments
[ 3.8 ms ] story [ 27.5 ms ] threadhttps://many.pw/hosting
You get a 30GB hard drive, 1GB ram, and two AMD EPYC 7B12 2250 MHz processors. That's enough to run a nice little site with plently of traffic.
To keep uptime during deploys it runs a reverse proxy to port 3000 and 3001 and switch between them each deploy.
The good news is that you probably don't need 99.99. Read "Embracing Risk": https://sre.google/sre-book/embracing-risk/
Well „need“ of course it a bit ambiguous. „It would make our life substantially easier if we had 99.99%“ would pretty much summarize it :)