Experiments
Explore how to supplement and scale microservices using Consul for service discovery combined with Apache httpd for routing. Learn Docker packaging, microservice registration with and without DNS, configuring clusters, and load balancing with Ribbon. Understand how to integrate these components into real applications, configure Spring Boot with Consul, and apply health checks for load management.
Supplement with additional microservice & without DNS #
Supplement the Consul system without DNS with an additional microservice.
-
A microservice that is used by a call center agent to create notes for a call can be used as an example. The call center agent should be able to select the customer.
-
You can copy and modify one of the existing microservices.
-
Register the microservice in Consul.
-
Ribbon has to be used to call the customer microservice and does the lookup of the microservice in Consul. Otherwise, the microservice must be searched explicitly in Consul.
-
Package the microservice in a Docker image and reference the image in
docker-compose.yml. You can also specify the name of the Docker container. -
Create a link in
docker-compose.ymlfrom the container with the new service to the containerconsul. -
The microservice must be accessible from the homepage. To do this, you have to ...