Service Discovery

Setup service discovery with dummy services and Consul

Start building, submit solution and get feedback from the community.
2Submit Solution·
5 upvotes10 upvotes

The goal of this project is to help you understand how service discovery works and how to setup Consul to manage your services. The learning objectives are:

  • Understand how services register with Consul
  • Learn how to query Consul for service information
  • Implement a basic service discovery mechanism
  • Understand service-to-service communication in a microservices architecture

Requirements

The project has multiple parts:

Dummy Services

You are required to create 3 dummy services, each service will just have a dummy endpoint (e.g. /info) that returns the current timestamp and the service name (e.g. Service A, Service B and Service C). Services should register themselves with Consul on startup.

API Gateway

API gateway acts as a single point of entry for the application. It will be responsible for discovering the services using Consul’s DNS interface or the API. The API gateway should be able to route requests to the appropriate service.

Consul

Consul will be used to store the service information and to provide a single point of contact for the API gateway to discover the services.


Once you have completed the project, you should have a basic understanding of how service discovery works and how to setup Consul to manage your services.

Found a mistake? Help us improve.

Actively Maintained

We are always improving our content, adding new resources and adding features to enhance your learning experience.

Join the Community

roadmap.sh is the 7th most starred project on GitHub and is visited by hundreds of thousands of developers every month.

Rank 7th  out of 28M!

302K

GitHub Stars

Star us on GitHub
Help us reach #1

+90k every month

+1.5M

Registered Users

Register yourself
Commit to your growth

+2k every month

30K

Discord Members

Join on Discord
Join the community

Roadmaps Best Practices Guides Videos FAQs YouTube

roadmap.sh by @kamrify

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh · Terms · Privacy · Advertise ·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.