WaspW
Wasp13mo ago
sion0921

Fly.io Multi-Region Wasp setup with database Replicas

I'm planning to run a multi-region service. My service, spellfast.ai, should be fast globally, so I'm scaling to multiple regions. The best way to do this in my case is by using database replicas, which are clones of the primary region's database. The benefit is that you have one database, and the clones receive updates. The setup involves setting up different ports for reading from database replicas and catching write requests, proxying them from replicas to the database in the primary region.

docs: https://fly.io/docs/postgres/advanced-guides/high-availability-and-global-replication/#connecting-to-read-replicas

Is such a custom setup even possible with Wasp? Any suggestions on how to achieve this?
Was this page helpful?