jhipster / jhipster-experimental-microservices

DON'T USE THIS - old experimental repository
45 stars 23 forks source link

Microservice composition #13

Closed eallais closed 8 years ago

eallais commented 8 years ago

I wonder if each microservice registered in the gateway are autonomous or can be coupled? For example, a microservice app1 could reach another microservice app2?

jdubois commented 8 years ago

They can see each other, and even discover themselves through the registry. So it's certainly doable. But we currently don't provide any helper for that.

cbornet commented 8 years ago

You can have a look at my generator-jhipster-swagger-cli module that can help with this.

PierreBesson commented 8 years ago

You can use Feign (rest client library), it can plays nicely with Eureka (see one example here: spring-cloud-samples/feign-eureka). You can do @FeignClient("microserviceName") to consume it. It is one of my ideas to try to do a generator using that in @cbornet's module.