harlow / go-micro-services

HTTP up front, Protobufs in the rear
MIT License
1.09k stars 165 forks source link

Any example for using service discovery (e.g. consul) with this code? #24

Closed rcholic closed 6 years ago

rcholic commented 6 years ago

From my understanding, the current design does not use service discovery, instead each service is deployed in a single docker container. I was wondering how to integrate consul into this implementation, and how to run multiple instances for each service.

Thanks

harlow commented 6 years ago

great question. haven't used consul before so maybe i'll spike something out when i have some free time and see if it feels like a good fit for this repo

harlow commented 6 years ago

I was wondering how to integrate consul into this implementation, and how to run multiple instances for each service.

this i'm not sure about... Looks like some load balancing will be needed: https://grpc.io/blog/loadbalancing https://github.com/grpc/grpc/blob/master/doc/load-balancing.md

harlow commented 6 years ago

closing consul issue, added new issue for load balancing: https://github.com/harlow/go-micro-services/issues/26