Ravi Sir's Cards › AWS
Task vs service in ECS?
This interview card answers: Task vs service in ECS? A task is one running copy of a task definition. A service keeps N tasks healthy and replaces failures. Long-running APIs use a service; one-off batch may run a standalone task. DesiredCount=2 on a service , then two tasks; stop one , then ECS starts another.
Read card text
What this card says
What it is
A task is one running copy of a task definition. A service keeps N tasks healthy and replaces failures.
Why it matters
Long-running APIs use a service; one-off batch may run a standalone task.
How / example
desiredCount=2 on a service → two tasks; stop one → ECS starts another.