Microservice and Containerization Patterns > Containerization Patterns > Container Chain
Container Chain (Erl, Naserpour)
How can containerized microservices with scheduling requirements be coordinated to ensure they are powered on and off in the correct sequence?
Problem
Solution
Application
A solution is provided that can schedule, start and stop the services and components in a specific order. To achieve this, the first step is to have control over the environment that the components reside in so that some of the configurations and functions can be determined and controlled. In addition, it needs to be ensured that the same order is followed every time a new instance of the microservice is instantiated or deployed.
A pre-scheduled start-up sequence of Microservice A and its components.
This pattern can be applied using pods and can further support the exclusion of components from the chain, as explained in the complete pattern description.