AWS Cloud Map 00:00:01 One new order desk enters a private directory A warehouse adds a second task to accept orders. The dispatchers need a name they can discover, while the task itself still has an ordinary network address. Follow its registration in this particular private DNS namespace. Only t-1 is listed. ECS starts t-2, then registers its address and zone in Cloud Map. For this DNS-enabled service the registration results in a private DNS record. An API-only namespace would not provide the same DNS lookup. The configured health reporting now marks the new task healthy. Inspect which health policy the discovery caller requested. Service registration and health are separate facts. AWS Cloud Map can help discover instances through its API, and an appropriate DNS namespace can also publish records through Route Fifty Three. 00:00:50 A requirement and a preference give different sets The order desks advertise their version and availability zone. One caller requires version two. A separate caller would prefer zone C, but it can use another zone. Trace the two requests independently. web asks Cloud Map for orders. In the version-two request, only task two matches the required attribute. In this separate zone-preference example no task is in zone C. Without another required filter, both registered candidates remain eligible. web picks t-1 and calls it directly. Cloud Map is not in the path. A required filter cannot simply disappear because its preferred neighbor failed to match. After discovery, the application chooses an address and connects directly. Cloud Map is not forwarding each order. 00:01:36 Watch an address outlive the task A resolver caches both task addresses. The second task stops before that cached answer expires. Every catalog and DNS registration operation could succeed while a caller still holds the old address. The resolver asks the private zone and receives both addresses. Later calls use the cached answer. No traffic to Route 53. ECS stops t-2, and Cloud Map removes the record. The cache does not know. Here a fresh connection to the departed task fails. Trying the other address works because that remaining task is healthy. After the TTL a new lookup returns one address. The time to live bounds ordinary resolver reuse, but applications can implement their own caching and can keep established connections. Callers need sensible deadlines and a safe retry policy for this overlap. 00:02:26 Price the directory traffic before the shift Two thousand dispatcher processes each inspect ten service names every fifteen seconds. Uniformly spread, that is about thirteen hundred thirty-three checks a second. Bursts can be higher when processes start together. Compare the computed rate with the illustrated account quotas. Verify the applicable service quotas for the actual account and region before deployment. Ask for the number instead. 1,333 of 3,000 fits. A task joins. The number becomes 42, and the list is read once. The task becomes unhealthy without a registration change. In the example, fetching full health-filtered lists every sixty seconds averages about three hundred thirty-three calls per second. A revision check can reduce expensive full-list calls when registrations stay stable. A health-only change need not alter the instance revision. Periodic full reconciliation provides a separate freshness bound. 00:03:31 Retire an order desk without stranding a caller At closing time, first remove the retiring task from discovery while it can still serve old callers. Predict who might keep using it after the catalog no longer lists it. ECS removes t-2 from the registry. t-2 keeps serving. For one TTL, callers with an old answer still reach t-2 and get replies. Once the chosen drain conditions are met, close remaining work according to the application's shutdown policy. Passing one DNS lifetime is not universal proof that every client is done. Allow for configured DNS caching, application caches and existing connections, then drain and stop the task. An address directory solves discovery. The warehouse still owns the client timeout, the graceful drain and the plan for stale information.