Architecture · interactive
Every architecture is a set of trade-offs.
Switch scenarios and watch the topology change. Each option lists its trade-offs, risks and assumptions. Real figures come from measuring your workload.
Cost-Optimized vs. Resilient vs. High-Scale.
Scenario · reference web platform
- Primary request path
- Async / standby
- 01
Users
web · mobile
- 02
CDN + static
edge cache
- 03
API gateway
throttling · auth
- 04
Functions
scale to zero
- 05
Serverless SQL
auto-pause
- 06
Daily snapshot
same region
Connects
- Users → CDN + static
- Users → API gateway
- API gateway → Functions
- Functions → Serverless SQL
- Serverless SQL → Daily snapshot
Cost-Optimized
Single region, managed and serverless-first. Pay for what runs; accept a smaller blast-radius budget.
Trade-offs
- Lowest idle spend: compute and database can scale toward zero outside business hours.
- Cold starts add latency to first requests after idle periods.
- Fewer moving parts make it easy for a small team to own.
Risks
- A regional outage takes the service down; recovery depends on snapshot restore time.
- Per-request pricing can overtake provisioned capacity at sustained high volume.
- Function concurrency limits can throttle traffic spikes if not reserved.
Assumptions
- Traffic is spiky or business-hours shaped.
- Hours of downtime and up to a day of data loss are tolerable (RTO/RPO agreed explicitly).
- Workload is stateless at the compute layer.
Choose when
Early products, internal tools, MVPs and workloads with uneven demand.
Private AI inference, step by step.
Switch between offline and hybrid to see how data, compute and trust boundaries shift.
Private AI inference pipeline · concept
Step 1 · User
Input stays on the host machine. Nothing leaves the local boundary.
Method note
In a real engagement, diagrams start a conversation. Assumptions become stakeholder questions, risks get owners, and the chosen option is recorded as an architecture decision.
SIRJAHIBENTLEY