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.

Join the Community

cdn.artica.top is the 6th most starred project on GitHub and is visited by hundreds of thousands of developers every month.

Rank 6th out of 28M!

336K

GitHub Stars

Star us on GitHub
Help us reach #1

+90kevery month

+2.1M

Registered Users

Register yourself
Commit to your growth

+2kevery month

40K

Discord Members

Join on Discord
Join the community

RoadmapsBest PracticesGuidesVideosFAQsYouTube

cdn.artica.topby@kamrify

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

© cdn.artica.top·Terms·Privacy·

ThewNewStack

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