Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do server side discovery with load balancer and service registry? #274

Open
SupunArunoda opened this issue Sep 22, 2016 · 6 comments

Comments

@SupunArunoda
Copy link

No description provided.

@SupunArunoda SupunArunoda changed the title How to do server side discovery with load balancer service registry? How to do server side discovery with load balancer and service registry? Sep 22, 2016
@afkham
Copy link
Contributor

afkham commented Sep 22, 2016

Can you elaborate? What do you mean by service registry?

@yhilem
Copy link

yhilem commented Oct 1, 2016

I only see http://microservices.io/patterns/service-registry.html

Examples of service registries (or technologies that are commonly used as service registries) include:

  • Eureka
  • Apache Zookeeper
  • Consul
  • Etcd

Some systems such as Kubernetes, Marathon and AWS ELB have an implicit service registry.

@yhilem
Copy link

yhilem commented Nov 15, 2016

Hi team,
How to add a servicelocator like (https://github.com/jboner/lagom-service-locator-zookeeper) or (https://github.com/jboner/lagom-service-locator-consul) ?
Thanks.

@imesh
Copy link
Contributor

imesh commented Nov 15, 2016

@yhilem Currently MSF4J does not provide a service discovery feature. Nevertheless, it can be implemented in the service itself using technologies that you have explained above.

AFAIU this feature is only needed for services which require point-to-point connections among service instances. Would you mind explaining your requirement around this? Thanks!

@yhilem
Copy link

yhilem commented Nov 15, 2016

My requirement is to let MSF4 microservices register in a central registry when they are up.
Than, use a proxy service (https://docs.wso2.com/display/ESB500/Working+with+Proxy+Services) in WSO2 APIM to expose the REST API. Thus, the proxy service will handle load balancing, service discovery, ....

Sample : API Gateway Routes client calls to services. Gets services locations from the service registry (http://aramis.resinfo.org/wiki/lib/exe/fetch.php?media=ateliers:microservices_docker_mesos_-_aramis.pdf)
apigateway msf4j

@imesh
Copy link
Contributor

imesh commented Mar 29, 2017

Apologies for the late response @yhilem, a great proposal! I'm +1 for the suggestion!
It would really make sense to have a service registry which would get populated automatically with the microservices deployed in an environment for other components such as API gateways to fetch information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants