Interview Prep/Docker/Architecture & Design Decisions

How would you containerize a legacy app that writes to local disk and holds sessions in memory?

AdvancedProductionArchitecture & Design Decisions
Answer

First step: lift and shift into one container with a volume for its data and a single replica, to get repeatable deployments. Then externalize state: sessions to Redis, uploads to S3, DB to a managed service, logs to stdout. Only after that can you scale horizontally and use rolling deploys. Resist forcing it onto Kubernetes before it is stateless.

All Docker questions Roadmap: Docker & containers

More on Architecture & Design Decisions