Service Discovery Eureka Netflix

2

I have a SOA architecture with two stacks different one with java and another with ruby, I have a microservice using spring boot and other rails, and I'm trying to configure a Service Discovery with Eureka for java projects especially with Spring Boot is very easy to register on Service Discovery however for another lang without being java did not find solution?

Is it possible to register with Eureka without being a java project? If yes, how?     

asked by anonymous 22.09.2017 / 14:22

1 answer

1

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

link

json example:

{
    "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"
        }
    }
}
    
22.09.2017 / 16:47