Contoso Capital uses an Azure Cosmos DB discovery registry for its A2A agent ecosystem. Agents and routing services run in East US and West Europe. The architects list these requirements for the registry design:
- Agents in each region must register in a registry replica in their own region, and routing services must query their local replica.
- If the registry is completely unavailable, routing services must keep routing new invocations to previously discovered agents.
- During registry overload, routing services must pause registry queries for a period instead of retrying repeatedly.
- Newly deployed agents must become routable without editing routing-service configuration.
Which design meets all four requirements?
Each requirement maps to one part of the registry resilience design. Cosmos DB multi-write regions allow agents to register in their own region's replica while clients query their local replica. A routing-service cache of the last successful registry results keeps invocations flowing during a complete outage, and a circuit breaker serves from that cache after repeated failures to avoid retry storms during overload. Because agents register themselves at startup, new agents become routable without changes to routing-service configuration.
- Not correct: Cosmos DB with a single write region and read replicas; a cache of recent registry results in each routing service; a circuit breaker that serves from cache after repeated failures. the documentation attributes local registration in each region's replica to Cosmos DB multi-write regions. With a single write region, registrations from the other region are not written to a local replica.
- Not correct: Cosmos DB with multi-write regions; no registry cache in the routing services; a circuit breaker that rejects new invocations after repeated failures. Continued operation during a complete registry outage comes from the routing service's cache of the last successful registry results. Without a cache, no new agent invocations can start while the registry is down.
- Correct: Cosmos DB with multi-write regions; a cache of recent registry results in each routing service; a circuit breaker that serves from cache after repeated failures. Multi-write regions let agents register in their local replica while clients query their local replica; the cache keeps routing working during a full registry outage; the circuit breaker stops queries to prevent retry storms; agents self-register, so no configuration edits are needed.
- Not correct: Cosmos DB with multi-write regions; a cache of recent registry results in each routing service; immediate retries of every failed registry query. The circuit-breaker pattern opens after consecutive failures and serves requests from cache without querying the registry, which prevents retry storms. Immediate retries on every failure are the behaviour the requirement forbids.
- Not correct: Cosmos DB with multi-write regions; a static agent endpoint list in each routing service; a circuit breaker that serves from the list after repeated failures. A static endpoint list is a hardcoded dependency that must be updated whenever agents are added or removed. The discovery registry pattern exists to remove hardcoded endpoints so new agents register themselves and become routable.