Microservice and Containerization Patterns > Boundary Definition Patterns > Multi-Container Isolation Control
Multi-Container Isolation Control (Erl, Naserpour)
How can the isolation level required by different microservices in containers be met?
![Multi-Container Isolation Control](https://patterns.arcitura.com/wp-content/uploads/2018/09/multi_container_lsolation_control.png)
Problem
Solution
Application
A workload placement control mechanism is implemented that controls and audits where each of the containers or microservices can be hosted, enforces pre-defined affinity and anti-affinity rules and triggers an alarm if the situation is violated.
![Multi-Container Isolation Control: Affinity rules are configured that enforce a control mechanism to always keep Containers A and B co-hosted on the same host. Multi-Container Isolation Control: Affinity rules are configured that enforce a control mechanism to always keep Containers A and B co-hosted on the same host.](https://patterns.arcitura.com/wp-content/uploads/2018/09/fig1-24.png)
Affinity rules are configured that enforce a control mechanism to always keep Containers A and B co-hosted on the same host.
![Multi-Container Isolation Control: Even if the environment is rebalanced to distribute the workloads, Containers A and B are not moved and remain on the same host. Multi-Container Isolation Control: Even if the environment is rebalanced to distribute the workloads, Containers A and B are not moved and remain on the same host.](https://patterns.arcitura.com/wp-content/uploads/2018/09/fig2.png)
Even if the environment is rebalanced to distribute the workloads, Containers A and B are not moved and remain on the same host.
This pattern is applied by using and then enforcing pre-defined affinity and anti-affinity deployment rules, as explained and illustrated in the complete pattern description.
This pattern is covered in Module 10: Advanced Microservice Architecture & Containerization..
For more information regarding microservice and containerization courses and accreditation,
visit the Microservice Architect Certification program page..