Simple read/write splitting using PostgreSQL streaming replication.
- PostgreSQL primary + read-replica via Docker Compose
- DB initialization via docker-entrypoint-initdb.d
- FastAPI app with routing:
- writes → primary
- reads → replica
make pg-upAll .sql files inside the init/ directory run automatically on first startup.
make run-app