AWS Cloud Map is a service used for discovering cloud resources on the AWS Cloud. Cloud Map allows you to define custom attributes of your application resources and automatically updates the addresses of these resources that dynamically change. With this simple yet powerful service, you can greatly enhance the availability of your microservices. Client applications will always discover the latest and most accurate locations of their back-end services and resources.
In this Cloud Lab, you’ll start by creating a complete end-to-end microservices-based application using a DynamoDB table as a database, a serverless Lambda function and a few EC2 instance hosted node servers as back-end services, and a provisioned React application as a frontend client application. You’ll then learn to integrate the AWS Cloud Map service to dynamically connect to backend services, even if they have different IP addresses or are down. Using the Cloud Map service, you’ll also learn to implement the randomized load-balancing algorithm for your EC2 servers.
The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab: