https://github.com/benbjohnson/litestream-read-replica-demo
A demo application for running live read replication on fly.io with Litestream
https://github.com/benbjohnson/litestream-read-replica-demo
Last synced: 3 months ago
JSON representation
A demo application for running live read replication on fly.io with Litestream
- Host: GitHub
- URL: https://github.com/benbjohnson/litestream-read-replica-demo
- Owner: benbjohnson
- License: apache-2.0
- Created: 2022-02-11T22:04:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-17T21:47:31.000Z (over 4 years ago)
- Last Synced: 2025-03-15T23:56:14.418Z (over 1 year ago)
- Language: Go
- Size: 15.6 KB
- Stars: 69
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Litestream Read Replica Demo
============================
A demo application for running live read replication on fly.io with Litestream
## Setup
```sh
# Setup app & fly.toml file
fly launch --name litestream-read-replica-demo --region ord --no-deploy
# Create a disk for each node
fly volumes create --region ams --size 1 data
fly volumes create --region atl --size 1 data
fly volumes create --region cdg --size 1 data
fly volumes create --region dfw --size 1 data
fly volumes create --region ewr --size 1 data
fly volumes create --region fra --size 1 data
fly volumes create --region gru --size 1 data
fly volumes create --region hkg --size 1 data
fly volumes create --region iad --size 1 data
fly volumes create --region lax --size 1 data
fly volumes create --region lhr --size 1 data
fly volumes create --region maa --size 1 data
fly volumes create --region nrt --size 1 data
fly volumes create --region ord --size 1 data
fly volumes create --region scl --size 1 data
fly volumes create --region sea --size 1 data
fly volumes create --region sin --size 1 data
fly volumes create --region sjc --size 1 data
fly volumes create --region syd --size 1 data
fly volumes create --region yyz --size 1 data
# Scale to one for each region
fly scale count 19
# Deploy application
fly deploy
```