{"id":15714180,"url":"https://github.com/nbw/phoenix-multi-database-example","last_synced_at":"2025-10-16T04:48:38.257Z","repository":{"id":73291722,"uuid":"410553667","full_name":"nbw/phoenix-multi-database-example","owner":"nbw","description":"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).","archived":false,"fork":false,"pushed_at":"2021-09-26T14:52:21.000Z","size":128,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T21:59:03.974Z","etag":null,"topics":["elixir","flyio"],"latest_commit_sha":null,"homepage":"https://nathanwillson.com/blog/posts/2021-09-25-fly-multi-db/","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-26T13:02:23.000Z","updated_at":"2023-11-07T11:07:58.000Z","dependencies_parsed_at":"2023-09-19T16:46:52.042Z","dependency_job_id":null,"html_url":"https://github.com/nbw/phoenix-multi-database-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbw%2Fphoenix-multi-database-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbw%2Fphoenix-multi-database-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbw%2Fphoenix-multi-database-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbw%2Fphoenix-multi-database-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbw","download_url":"https://codeload.github.com/nbw/phoenix-multi-database-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246367438,"owners_count":20765880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","flyio"],"created_at":"2024-10-03T21:34:57.601Z","updated_at":"2025-10-16T04:48:33.223Z","avatar_url":"https://github.com/nbw.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fly multi-region-databases Phoenix/Elixir Example\n\nUsing 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).\n\nCheck out [this blog post](https://nathanwillson.com/blog/posts/2021-09-25-fly-multi-db/) for a detailed explanation.\n\n## Usage\n\nFrom the `my_app` folder:\n\n```\nflyctl launch\n```\n\nNote: the above command will create an app and fail the first time. To fix it:\n* create a database (refer to blog post)\n* set a base secret (refer to fly elixir setup docs)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbw%2Fphoenix-multi-database-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbw%2Fphoenix-multi-database-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbw%2Fphoenix-multi-database-example/lists"}