Posted On: Sep 20, 2023

Amazon Cloud Map introduces a new API for retrieving the revision of your services in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and Amazon Web Services China (Ningxia) Region, operated by NWCD. It allows your applications to update the state of your cloud resources only when it has changed, minimizing the discovery traffic and API cost. With Amazon Cloud Map, you can define custom names for your application resources, such as Amazon Elastic Container Services (Amazon ECS) tasks, Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon DynamoDB tables, or other cloud resources. You can then use these custom names to discover the location and metadata of cloud resources from your applications using Amazon SDK and authenticated API calls.

While the existing Amazon Cloud Map’s DiscoverInstances API returns the full information about registered cloud resources, the new API called DiscoverInstancesRevision returns only the revision number. Now to keep your application up to date with the state of cloud resources it depends on, you can make a lightweight API call that returns only the revision number. Then you can compare it with the revision of the full list of cloud resources, and skip calling DiscoverInstances API again if the revision hasn’t changed. It reduces the network traffic, allows you to optimize your applications, and reduces the cost associated with service discovery.

To learn more, please refer to the Amazon Cloud Map documentation.