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.yml from the container with the new service to the container consul.

  • The microservice must be accessible from the homepage. To do this, you have to create a link in the file index.html in the Docker container apache. Consul Template automatically sets up the routing for the microservice in Apache as soon as the microservice is registered in Consul.

Get hands-on with 1200+ tech skills courses.