Skip to content

Using Fly.io to host a Phoenix web app that's connected to multiple Postgres read-replica databases (1 read/write master and a number of read-only replicas).

Notifications You must be signed in to change notification settings

nbw/phoenix-multi-database-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Fly multi-region-databases Phoenix/Elixir Example

Using Fly.io to host a Phoenix web app that’s connected to multiple Postgres read-replica databases (1 read/write master and a number of read-only replicas).

Check out this blog post for a detailed explanation.

Usage

From the my_app folder:

flyctl launch

Note: the above command will create an app and fail the first time. To fix it:

  • create a database (refer to blog post)
  • set a base secret (refer to fly elixir setup docs)

About

Using Fly.io to host a Phoenix web app that's connected to multiple Postgres read-replica databases (1 read/write master and a number of read-only replicas).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published