# Better understanding best practices for HA for both web apps and PG apps

**URL:** <https://community.fly.io/t/better-understanding-best-practices-for-ha-for-both-web-apps-and-pg-apps/12360>\
**Category:** Questions / Help\
**Tags:** login-only\
**Created:** [April 19, 2023, 9:31pm UTC](https://community.fly.io/t/better-understanding-best-practices-for-ha-for-both-web-apps-and-pg-apps/12360 "2023-04-19T21:31:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dangra](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/dangra/32/4413_2.png) [@dangra](https://community.fly.io/u/dangra)\
**Post date:** [April 19, 2023, 10:22pm UTC](https://community.fly.io/t/better-understanding-best-practices-for-ha-for-both-web-apps-and-pg-apps/12360/2 "2023-04-19T22:22:28Z")

</div>

Your application is basically two Fly apps, one for Rails and another for Postgres.

Choose two regions you care about, and pick one as the primary region.

1. Launch a high available Postgres cluster on the primary region and adds replica in the secondary region according to [High Availability & Global Replication · Fly Docs](https://fly.io/docs/postgres/advanced-guides/high-availability-and-global-replication/)
2. Start at least one machine for your Rails app on each region.

To be clear, considering your comment at [Increasing Apps V2 availability - #6 by danwetherald](https://community.fly.io/t/increasing-apps-v2-availability/12357/6), you don’t need standbys and you won’t get them when deploying your app either.

Just be sure to scale up your Rails app to run in multiple regions.

---

_[View the full topic](https://community.fly.io/t/better-understanding-best-practices-for-ha-for-both-web-apps-and-pg-apps/12360)._
