Lifestyles
Living in peace
A peaceful life isn't empty — it's balanced. Work gets done steadily, relationships are healthy, surprises are handled calmly, and nothing is wasted. Most business systems should aim for this lifestyle: B2B SaaS products, HR and payroll, booking systems, steady e-commerce, back-office workflows.
What peace looks like in a system
| Peaceful habit | System quality |
|---|---|
| Clear roles and boundaries | Well-defined bounded contexts; one job per human |
| Calm communication | Mostly asynchronous events; few synchronous chains |
| Regular health check-ups | Good observability; alarms that matter |
| Living within your means | Right-sized capacity; cost visibility per service |
| Planning ahead | Infrastructure as code; tested recovery |
| Handling surprises calmly | Retries, dead-letter queues, graceful degradation |
The peaceful architecture
UI (S3 + CloudFront) ─► API Gateway (Cognito auth) ─► humans (Lambda + own DynamoDB)
│ announce
▼
EventBridge town square
│ rules
▼
inboxes (SQS + DLQ) ─► other humans
Critical flows: Step Functions manager · Analytics: Firehose → S3 → Athena
Settings for a peaceful human
// Inside the Waiter construct, when lifestyle === "peace"
const cell = {
runtime: lambda.Runtime.NODEJS_22_X,
architecture: lambda.Architecture.ARM_64, // efficient and cheaper
memorySize: 512, // tuned from real measurements
timeout: Duration.seconds(10),
tracing: lambda.Tracing.ACTIVE,
};
// Memory: on-demand is simplest; switch to provisioned + auto scaling once traffic is well understood
// Alarms: errors, p99 latency, DLQ depth — routed to the team's channel
Practices that keep the peace
- Boundaries respected — no shared databases; contracts for APIs and events; versioned schemas.
- Independent deployments — each human ships on its own schedule through the pipeline.
- Observability by default — structured logs, metrics, traces and a dashboard per human.
- Cost awareness — tag everything by service; review costs monthly; right-size memory (tools like AWS Lambda Power Tuning help find the best memory setting).
- Resilience rehearsed — point-in-time recovery on tables, backups, and occasional game days ("what if the Cashier's payment provider is down for an hour?").
- Steady housekeeping — dependency updates, runtime upgrades, deleting unused resources.
The quiet dangers of a peaceful life
| Danger | Prevention |
|---|---|
| Slowly growing complexity | Regular architecture reviews; merge humans that always change together |
| Configuration drift | Everything through IaC and pipelines |
| Outdated runtimes and libraries | Scheduled upgrades; automated dependency PRs |
| Silent failures | DLQ alarms; business-metric alarms ("no orders in 30 minutes during opening hours") |
Key idea
Peaceful systems aren't the ones that never face stress — they're the ones whose habits make stress uneventful. Clear boundaries, calm communication, regular check-ups and living within means.