Interview Prep/Docker/Architecture & Design Decisions

How do you decide how many processes belong in one container?

BeginnerProductionArchitecture & Design Decisions
Answer

One concern per container: the app, a proxy, a log shipper each in their own container. It gives independent scaling, restarts, logs and updates. Exceptions are tightly coupled helpers handled as sidecars sharing a network namespace. Supervisord-style multi-process containers hide failures from the orchestrator.

All Docker questions Roadmap: Docker & containers

More on Architecture & Design Decisions