Architecture Patterns
Guides for the structure your app on Fly.io. Layouts, tradeoffs, moving parts.- Deploy OpenClaw on Fly.io
- Run Hermes Agent on Fly.io NEW!!
- Warm pools of user Machines NEW!!
- Deploying Remote MCP Servers
- High availability: run multiple Machines
- N-tier architecture
- Shared Nothing Architecture
- Sticky sessions (session affinity)
- Multi-region databases with read replicas and fly-replay
Deployment & Developer Workflow
Stuff you set up once and adjust when you ship code. Includes previews, base images, staging, and Docker wrangling.- Working with Docker on Fly.io
- Custom deploy workflows: staggered and selective deploys
- Zero-downtime deployments
- Roll back a deploy
- Git Branch Preview Environments on Github
- Separate staging and production environments
- Per-User Dev Environments with Fly Machines
- Use Docker base images for faster deploys
- Managing Docker Images with Fly.io’s Private Registry
Networking & Connectivity
Connecting things. Public apps, private services, bridging deployments, SSH, and WireGuard.- Run private apps with Flycast
- Connect to your private network with WireGuard
- Connect AWS and other clouds with WireGuard
- Route requests to per-user Fly Machines
- Run an SSH server on a Fly Machine
Scaling, Performance & Observability
Make it fast. Make it reliable. Monitor what’s happening.- Stream logs from user apps with NATS
- Autoscale Fly Machines with autostop or fly-autoscaler
- Autostart and autostop private apps with Flycast
- Setting Hard and Soft Concurrency Limits
- Using Fly Volume forks for faster startup times
- Run HIPAA-compliant healthcare apps