The concept Start with the workload, not the service
The first release is a modular monolith with separate processing responsibilities, a React frontend, PostgreSQL, object storage and asynchronous processing. It does not automatically need Kubernetes. Choose the runtime from the workload, the team’s operating capability, availability needs and cost.
| Option | Fits when |
|---|---|
| Amazon ECS with AWS Fargate | You want to run containers without managing servers; the Apex baseline |
| Amazon ECS on EC2 | You need control of instances, capacity or specialized hardware |
| Amazon EKS | Kubernetes features, ecosystem or company standards justify the extra operations |
| AWS Lambda | Short, event-driven tasks such as some file steps; not every long-running component |
The design Reference deployment topology
| Path | Steps |
|---|---|
| A finance user | HTTPS connection; authenticated API request; the load balancer routes it; the application checks identity and permissions; queries the database; responds; telemetry is recorded |
| A settlement file | Arrives through the approved channel; stored in S3; an event or workflow starts; metadata and records validated; work queued; a worker processes records; results and status persisted; failures visible to operators |
More than a container What a deployment must verify
- Image identity (the digest) and runtime configuration.
- Database connectivity, IAM permissions and network paths.
- Health checks, logging and secrets retrieval.
- Encryption, autoscaling limits, deployment strategy and rollback.
Practice Deploy to a production-like environment
Practical exercise
Exercise 03: the Apex AWS deployment
Deploy the application and explain how you avoided unnecessary complexity.
- Container registry, application runtime and private relational database.
- Object storage and asynchronous processing.
- Secrets management, application logs and health checks.
- HTTPS access.
Show a sample decision note
- Runtime: ECS Fargate; EKS rejected because no Kubernetes feature is needed and the team would carry cluster upgrades.
- Queue: SQS with a dead-letter queue; Kafka rejected for this volume.
- Revisit when: another team standardizes on Kubernetes or the workload needs scheduling features Fargate lacks.
2 questions
Check your understanding
Answer every question to submit.
What you can do now
- Choose a runtime from the workload.
- Draw a production topology with trust boundaries.
- List what a deployment must verify.
← Lesson 02: Infrastructure as Code: Reproducible Environments