
This tutorial begins a hands-on deployment course for running multiple real applications on a very small monthly budget. The first two hours set the target workload, deploy the Weer URL shortener with Docker and natively, configure SSH ergonomics, clean up Docker storage, use AWS AMI/snapshots for recovery and break periods, move secrets into AWS Systems Manager Parameter Store, and deploy the larger Pagser content-sharing application.
flowchart TD
A[Budget and workload target] --> B[Weer architecture]
B --> C[Docker deployment]
C --> D[Native deployment]
D --> E[Backup and restore]
E --> F[Parameter Store secrets]
F --> G[Pagser deployment]
G --> H[Next topics: email, media storage, processing]
Topic breakdown
- Project scope and workload target
- Weer architecture
- Deploying Weer with Docker
- SSH and remote workflow
- Docker storage and cleanup
- Native Weer deployment
- Backups, snapshots, and secrets
- Pagser overview and deployment
Key takeaways
- The target is not a toy benchmark: the setup is meant for 50 million monthly HTTP requests, roughly 20 requests/second on average, with provisioning expectations for 60 requests/second daily peaks and 200 requests/second rare spikes.
5:486:126:30 - The course starts on one AWS
T4G.smallUbuntu instance with 2 GB RAM, 2 CPU cores, and 25 GB of storage, intended to stay near a $15/month baseline before later optimizations.23:1323:491:22:17 - Weer avoids writing each redirect view directly to Postgres by pushing view events into Redis Streams first, then batch-writing them from a separate janitor process.
14:0314:28 - Docker made the first Weer deployment a one-command setup with Redis, Postgres, server, and janitor services, but the native path was kept central because it teaches the underlying Unix and operations concepts.
30:5856:18 - A snapshot/AMI can restore a damaged server state, but snapshot billing tracks written disk blocks, not just currently used filesystem space, so deleted large writes can still increase snapshot size.
1:29:101:34:21 - Moving
.envvalues into AWS Systems Manager Parameter Store plus an EC2 IAM role removes manual secret setup from redeployments and prepares the deployment for automatic machine replacement.1:38:141:50:451:58:32 - Pagser adds heavier production concerns than Weer: rich content editing, authentication emails, server-side rendering, comments, media processing, file uploads, S3 storage, and SES email delivery.
2:03:402:08:422:09:522:11:19