Custom Service Discovery Using Netflix Eureka


Mahesh Sind

Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery.

Our current implementation:Consumers consuming microservices

Here is a simple implementation where we have multiple clients consuming a service exposed by a single microservice Service-A .

When we plan to introduce a new microservice , Service-B , with the same contract as Service-A . With this new service, clients will have to implement logic to identify the service to call based on certain parameters. Each client will have to implement the following logic:Multiple service providers

That's where Service Discovery comes in. I'm trying Eureka, but I can't find any documentation or resources to show that we can provide custom logic for service registry or service discovery. I'm not even sure if Eureka can do what I want. this is our target:Custom Service Discovery in Eureka

We want to use service discovery as we may add more such services based on new types. What I've tried is to have my own RestController that will then call the ApplicationResource's internal methods. That didn't work. I can't find any interface/abstract class that I can implement/extend to change the logic.

*Please excuse my poor drawing skills.

Kasik Manikam

Try Netflix Zuul. This will also register with the Eureka server and automatically set up dynamic routes based on other services registered with Eureka to provide access to our API through a single point.

I hope this link helps you : https://stackabuse.com/spring-cloud-routing-with-zuul-and-gateway/

Related


eureka unknownHostException in service discovery

prranay I have two microservices, eureka-client-1 running on localhost:8081 eureka-client-2 running on localhost:8082 Both are DiscoveryClient registered with 'eureka-server' running on localhost:8761. In the code snippet below, I am trying to call eureka-clie

Disadvantages of using Eureka for Kubernetes service discovery

David context I'm deploying a set of services containerized using Docker into AWS. Regardless of the deployment solution chosen (like raw EC2/ECS/Elastic Beanstalk/Fargate), we're going to face the problem of "service discovery". To name just a few service dis

JSONException using Netflix Eureka

cigarette I'm pretty new to Netflix Eureka and SpringBoot. I built a very simple Eureka server and client to see how they do long term discovery. When I see the UI when I go to localhost:8761/, the Eureka server loads itself normally. I am using Eclipse's Tomc

Custom Service Discovery Using Netflix Eureka

Mahesh Sind Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery. Our curren

eureka unknownHostException in service discovery

prranay I have two microservices, eureka-client-1 running on localhost:8081 eureka-client-2 running on localhost:8082 Both are DiscoveryClient registered with 'eureka-server' running on localhost:8761. In the code snippet below, I am trying to call eureka-clie

Using Netflix Eureka on Kubernetes

rajesh023 We are currently using spring boot and netflix components to set up a microservices architecture, for Deployment we plan to use aws kubernetes (EKS) setup. We're in a dilemma when it comes to choosing between using netflix's Eureka and Ribbon service

Disadvantages of using Eureka for Kubernetes service discovery

David context I'm deploying a set of services containerized using Docker into AWS. Regardless of the deployment solution chosen (like raw EC2/ECS/Elastic Beanstalk/Fargate), we're going to face the problem of "service discovery". To name just a few service dis

Using Netflix Eureka on Kubernetes

rajesh023 We are currently using spring boot and netflix components to set up a microservices architecture, for Deployment we plan to use aws kubernetes (EKS) setup. We're in a dilemma when it comes to choosing between using netflix's Eureka and Ribbon service

Custom Service Discovery Using Netflix Eureka

Mahesh Sind Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery. Our curren

JSONException using Netflix Eureka

cigarette I'm pretty new to Netflix Eureka and SpringBoot. I built a very simple Eureka server and client to see how they do long term discovery. When I see the UI when I go to localhost:8761/, the Eureka server loads itself normally. I am using Eclipse's Tomc

Using Netflix Eureka on Kubernetes

rajesh023 We are currently using spring boot and netflix components to set up a microservices architecture, for Deployment we plan to use aws kubernetes (EKS) setup. We're in a dilemma when it comes to choosing between using netflix's Eureka and Ribbon service

Custom Service Discovery Using Netflix Eureka

Mahesh Sind Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery. Our curren

Custom Service Discovery Using Netflix Eureka

Mahesh Sind Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery. Our curren

eureka unknownHostException in service discovery

prranay I have two microservices, eureka-client-1 running on localhost:8081 eureka-client-2 running on localhost:8082 Both are DiscoveryClient registered with 'eureka-server' running on localhost:8761. In the code snippet below, I am trying to call eureka-clie

Disadvantages of using Eureka for Kubernetes service discovery

David context I'm deploying a set of services containerized using Docker into AWS. Regardless of the deployment solution chosen (like raw EC2/ECS/Elastic Beanstalk/Fargate), we're going to face the problem of "service discovery". To name just a few service dis

Using Netflix Eureka on Kubernetes

rajesh023 We are currently using spring boot and netflix components to set up a microservices architecture, for Deployment we plan to use aws kubernetes (EKS) setup. We're in a dilemma when it comes to choosing between using netflix's Eureka and Ribbon service

Using Netflix Eureka on Kubernetes

rajesh023 We are currently using spring boot and netflix components to set up a microservices architecture, for Deployment we plan to use aws kubernetes (EKS) setup. We're in a dilemma when it comes to choosing between using netflix's Eureka and Ribbon service

Custom Service Discovery Using Netflix Eureka

Mahesh Sind Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery. Our curren

Custom Service Discovery Using Netflix Eureka

Mahesh Sind Currently, I'm working on a POC in an organization. Our goal is to implement service discovery. So I'm exploring Eureka. Eureka is great for unconditional discovery services. Our requirement is to implement conditional service discovery. Our curren