TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to host simple Rails API to get 99.99% uptime

5 点作者 Maarius将近 2 年前
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.<p>To keep the DevOps overhead low I am thinking about using DigitalOcean.<p>The current idea is<p>* Use the &quot;App Platform&quot; with multiple app instances that are load balanced through DO itself (unfortunately only within same region)<p>* Use managed Postres with multiple standby nodes (allows for &quot;immediate automatic failover&quot;)<p>* 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)<p>Do you have any other &#x2F; better ideas for a rather straightforward setup? I am trying to avoid AWS but am not completely opposed.

4 条评论

dorongrinstein将近 2 年前
Actually, <a href="https:&#x2F;&#x2F;controlplane.com" rel="nofollow noreferrer">https:&#x2F;&#x2F;controlplane.com</a> provides 99.999% availability SLA. The reason it is able to do so is because it distributes your containerized workloads across multiple regions on multiple clouds (you pick the regions and clouds). You can have a single region or 200 regions - with the same effort. It then charges you by the millicore (1,000th of a vCPU core) for exactly what your app uses. It gives you metrics, logging, tracing, alerting, secrets management, service discovery, auto-TLS and you can trivially use your own domain name. You get the power of the hyper-scalers with the ease of use of Heroku. The best part is that it lets you mix-n-match ALL&#x2F;ANY service from any cloud in your code without you having to deal with credentials! Meaning you can use S3, DynamoDB, RDS, Big Query, Big Table, Cosmos DB, etc. - across AWS, GCP and Azure and you can even run your code on-premises or on ANY providers such as Linode, Hetzner, Contabo, Equinix, Oracle, etc. In short - it is the &quot;non-toy&quot; way to run your code when failure is not an option, but at a ridiculously low cost.
andrewfromx将近 2 年前
I love my own little &quot;devops&quot; toolkit to get this on google cloud and all for free if you stay in their free tier:<p><a href="https:&#x2F;&#x2F;many.pw&#x2F;hosting" rel="nofollow noreferrer">https:&#x2F;&#x2F;many.pw&#x2F;hosting</a><p>You get a 30GB hard drive, 1GB ram, and two AMD EPYC 7B12 2250 MHz processors. That&#x27;s enough to run a nice little site with plently of traffic.<p>To keep uptime during deploys it runs a reverse proxy to port 3000 and 3001 and switch between them each deploy.
lantry将近 2 年前
Most cloud services have SLAs of 99.99 themselves, so it&#x27;s not entirely realistic to go higher than that.<p>The good news is that you probably don&#x27;t need 99.99. Read &quot;Embracing Risk&quot;: <a href="https:&#x2F;&#x2F;sre.google&#x2F;sre-book&#x2F;embracing-risk&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;sre.google&#x2F;sre-book&#x2F;embracing-risk&#x2F;</a>
评论 #37012109 未加载
dorongrinstein将近 2 年前
Use <a href="https:&#x2F;&#x2F;controlplane.com" rel="nofollow noreferrer">https:&#x2F;&#x2F;controlplane.com</a> - you&#x27;ll get multiple regions and ultra low cost and fun user experience.
评论 #37012083 未加载