When should you use Docker Compose, Swarm, ECS, or Kubernetes?
IntermediateProductionArchitecture & Design Decisions
Answer
- Compose on one VM: small apps, internal tools, CI stacks; cheapest and simplest.
- Swarm: small multi-node clusters when the team refuses Kubernetes complexity.
- ECS/Fargate: AWS-native, no control plane to run, great for teams already on AWS.
- Kubernetes: multi-team platforms, autoscaling, ecosystem (operators, service mesh, GitOps).
Choose on team skills, scale, and need for portability, not hype.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?IntermediateHow do you structure a reverse proxy in front of containers?Intermediate