Desired state is a continuing obligation
How desired-state reconciliation maintains microservice availability within the orchestration and compute-capacity boundaries of ECS, EKS, and Fargate. · advanced
Reconciliation repeatedly compares declared intent with observed state and takes corrective action. For a continuously running microservice, intent includes its workload specification and replica count. A failed replica creates a difference to repair; it does not normally require changing the declared count. Reconciliation is asynchronous, so desired count and available count can differ during recovery.
In ECS, a service maintains the desired number of tasks using a task definition. A standalone task is not an ECS service: merely starting one does not establish a service-level replacement obligation. In EKS, Kubernetes Deployment and ReplicaSet controllers maintain the declared population of Pods; the scheduler assigns unscheduled Pods to suitable execution capacity. Creating a bare Pod does not give it a Deployment's replacement behavior.
Workload autoscaling changes the target, while reconciliation works toward the current target. Neither ECS service reconciliation nor Kubernetes replica reconciliation guarantees that suitable compute exists, that an application is ready, or that its dependencies are healthy.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.