hemerajs / hemera

🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to integrate with Netflix Eureka?

danielsan opened this issue · comments

Hi everyone,

I'm trying to choose a microservices framework to use with node
but I really need to be able to integrate it with Eureka since we already have a
microservices infrastructure using Eureka :'(

Does anybody know how to use hemera with Eureka for service register/discovery?

Hi @danielsan there is no need for a service discovery or load-balancing because it's handled by NATS automatically. Every microservice is a single subscription in NATS so you can save that complexity.

Yeah, I know, that would be great if the company I work at was not already using Eureka.
We want to evolve our microservices platform by creating them in other languages (not only Java) and integrate them.

That is why I wanted to know how to make it work with Eureka, got it?

Then I don't understand the relation to hemera. In hemera / NATS you can't use a different service discovery because it's built in. If you want to create a different driver in a different language you can easily communicate over NATS with the same protocol. There is already a java nats driver.

https://github.com/nats-io/java-nats

The hemera protocol you can find here https://hemerajs.github.io/hemera/4_overview.html

I also working on a client for Go https://github.com/hemerajs/go-hemera

@danielsan one of the primary tasks of nats is to provide load balancing and service discovery. It's based on the pub sub model so that we can't provide modules for this. Please reopen if I couldn't answer your question.