Service Discovery Eureka Netflix

Asked

Viewed 220 times

2

I have an architecture SOA with two stacks different with java and other with ruby, I have a microservice using spring boot and other Rails, and I’m trying to set up a Discovery Service with Eureka for java projects especially with Spring Boot is very easy to register in Discovery Service but for another lang without being java did not find solution?

So it is possible to register in Eureka without being a java project? if yes, how?

1 answer

1


I found the solution: You register your micro service via REST.

https://github.com/Netflix/eureka/wiki/Eureka-REST-operations

Example of json:

{
    "instance": {
        "hostName": "rails-checkin",
        "app": "rails-checkin",
        "vipAddress": "com.automationrhapsody.eureka.app",
        "secureVipAddress": "com.automationrhapsody.eureka.app",
        "ipAddr": "127.0.0.1",
        "status": "UP",
        "port": {"$": "3000", "@enabled": "true"},
        "securePort": {"$": "3000", "@enabled": "true"},
        "healthCheckUrl": "http://rails-checkin:3000/checkins",
        "statusPageUrl": "http://rails-checkin:3000/checkins",
        "homePageUrl": "http://rails-checkin:3000/",
        "dataCenterInfo": {
            "@class": "com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo", 
            "name": "MyOwn"
        }
    }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.