Sign up for Hasura Newsletter
Loading...

高可用性

由 Hasura 提供服务的 GraphQL API 应持续运行,并消除任何单点故障,以获得可靠的应用基础设施。从根本上讲,GraphQL API 有两个方面得到使用:Postgres 数据库的可用性和 Hasura 的可用性。

PostgreSQL HA

Postgres 为配置高可用性系统提供了各种解决方案。大多数代管式 Postgres 供应商都为 Postgres 提供一个 HA 系统,配置好后,会在发生故障时自动切换到备用 Postgres。使用 Heroku,这是我们如何设置副本,以确保有一台热备用服务器在发生故障时确保自动切换。

这不需要在 Hasura 项目层面进行配置。

Hasura HA

开源 graphql 引擎可以运行 多个 Hasura 实例。在 Hasura Cloud 中,自动扩展过程及其运行所需的基础设施无需手动干预。

另外,由于 Hasura 的多个实例连接到同一个数据库,事件触发器不会造成重复事件,也不会有订阅可靠性问题。

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin