Scenario 1: Port is 8761 (Default Port)

In Scenario 1 let’s say our discovery service is running on port no 8761

server.port=8761

So in this case when the service starts they know where Eureka usually runs which is 8761. So they use default http://localhost:8761/eureka to connect and register themselves with Eureka.

What happens when we change the port of Eureka? Let’s see this in Scenario 2.

How Eureka Server and Client Communicate with Each Other in Microservices?

Service Discovery is one of the major things of a microservice-based architecture. Eureka is the Netflix Service Discovery Server and Client. The server can be configured and deployed to be highly functional, with each server copying the state of the registered services to the others. In the previous article, we have seen How to Register Microservices Using Netflix Eureka but how this communication happens between Eureka Server and Eureka Client. In this article, we are going to discuss this.

Note: Please make sure you have followed this article How to Register Microservices Using Netflix Eureka

Similar Reads

Scenario 1: Port is 8761 (Default Port)

In Scenario 1 let’s say our discovery service is running on port no 8761...

Scenario 2: Port is 5000 (Random Port)

In Scenario 2 let’s say our discovery service is running on port no 5000...

Contact Us