ExitAWS Cloud Map: dynamic microservice discovery1 / 9
Explanation

Stable names over changing instances

How namespaces, instance registration, and health-aware discovery keep microservice endpoints discoverable, including the registry's role in ECS Service Connect rather than traffic routing or observability. · advanced

AWS Cloud Map separates a service's identity from its current endpoints. A namespace groups service names and establishes available discovery mechanisms. A service defines discovery settings and health configuration. Each registered instance represents one resource, identified within that service and described by attributes.

An HTTP namespace supports API discovery, not DNS discovery; “HTTP” describes the discovery mechanism, not the application's traffic protocol. Private DNS namespaces support discovery through DNS within associated VPCs and through the API. Public DNS namespaces support public DNS and API discovery. DNS-enabled namespaces use Route 53 hosted zones.

Create the namespace, create its service, and then register instances before discovering them. Registration supplies attributes such as an IP address and port, or custom metadata for API queries. Cloud Map does not find every running workload automatically: an application, deployment system, or integration must own registration and deregistration.

NamespaceAPI discoveryDNS discovery
HTTPSupportedNot provided
Private DNSSupportedWithin associated VPCs
Public DNSSupportedPublic DNS

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.