--
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framework+unsubscribe@googlegroups.com.
To post to this group, send email to lagom-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/7615cff7-3efa-46ca-8e84-92cbad43589d%40googlegroups.com.
A service gateway is a proxy server into your services from the outside world. Without it, your services can talk to each other, but nothing can talk to your services. For example, if you're developing a webapp, you may want the browser to be able to make calls to your services - but you don't want the browser to have to know the IP/port number of each service, so instead it talks to the service gateway.
On 26 September 2016 at 21:57, Jules Ivanic <jules....@gmail.com> wrote:
Hi,
Same question here. Mirco talked about this "service gateway" here https://groups.google.com/d/msg/lagom-framework/4J9T_T4EcGE/lZSNw7RhAgAJ without more explanations.
Le vendredi 23 septembre 2016 00:18:15 UTC+2, David Pennell a écrit :http://www.lagomframework.com/documentation/1.0.x/java/ServiceLocator.html#Service-Locator explains service locator.Where can I find info on the service gateway (not sure what its function is)-david
--
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framewo...@googlegroups.com.
To post to this group, send email to lagom-f...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/7615cff7-3efa-46ca-8e84-92cbad43589d%40googlegroups.com.
Thanks for the explanation.So, for most use-cases, you'll need both a service locator and a service gateway.I did some more digging over the weekend.The Lagom community has multiple choices for Service Locator:- conductr - nice solution, but many have organizational/business constraints that preclude it's use- kubernetes - early days: https://github.com/huntc/kubernetes-lib/tree/masterFor service gateway:- Conductr wraps haproxy- "wrapping" means that you need to update haproxy configuration whenever the service registry changes- haproxy seems to be a solid choice, unless you need support for UDP (we do) - nginx seems to be next in line. I'm sure that we are in the minority.For service registry: Are there any plans for Lagom to provide an abstraction over this? Both the zookeeper and consul service locators require manual register/de-register with registry specific code.
-david
On Monday, September 26, 2016 at 8:43:27 PM UTC-4, James Roper wrote:A service gateway is a proxy server into your services from the outside world. Without it, your services can talk to each other, but nothing can talk to your services. For example, if you're developing a webapp, you may want the browser to be able to make calls to your services - but you don't want the browser to have to know the IP/port number of each service, so instead it talks to the service gateway.On 26 September 2016 at 21:57, Jules Ivanic <jules....@gmail.com> wrote:Hi,--
Same question here. Mirco talked about this "service gateway" here https://groups.google.com/d/msg/lagom-framework/4J9T_T4EcGE/lZSNw7RhAgAJ without more explanations.
Le vendredi 23 septembre 2016 00:18:15 UTC+2, David Pennell a écrit :http://www.lagomframework.com/documentation/1.0.x/java/ServiceLocator.html#Service-Locator explains service locator.Where can I find info on the service gateway (not sure what its function is)-david
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framewo...@googlegroups.com.
To post to this group, send email to lagom-f...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/7615cff7-3efa-46ca-8e84-92cbad43589d%40googlegroups.com.--
--
You received this message because you are subscribed to the Google Groups "Lagom Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framework+unsubscribe@googlegroups.com.
To post to this group, send email to lagom-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/ae0fd2f6-6806-4b1b-816c-fb1782bac63c%40googlegroups.com.
On 27 September 2016 at 21:07, David Pennell <dpen...@good-cloud.com> wrote:Thanks for the explanation.So, for most use-cases, you'll need both a service locator and a service gateway.I did some more digging over the weekend.The Lagom community has multiple choices for Service Locator:- conductr - nice solution, but many have organizational/business constraints that preclude it's use- kubernetes - early days: https://github.com/huntc/kubernetes-lib/tree/masterFor service gateway:- Conductr wraps haproxy- "wrapping" means that you need to update haproxy configuration whenever the service registry changes- haproxy seems to be a solid choice, unless you need support for UDP (we do) - nginx seems to be next in line. I'm sure that we are in the minority.For service registry: Are there any plans for Lagom to provide an abstraction over this? Both the zookeeper and consul service locators require manual register/de-register with registry specific code.I hadn't considered providing an abstraction over it - I'm also not 100% sure that an abstraction is the right way to go. So at some point in future there will be some zookeeper support and some consul support (probably community provided) that will do the registration. The common bits of code between them will be very little, because all they need to do is create an eager singleton that does the binding, look at the ServiceInfo to get the service name, lookup the IP/port from the environment, and register a stop hook, the rest is the actual making the call. I'm just not sure that putting an abstraction there will improve anything over each plugin doing all that manually, abstractions add complexity and make things harder to debug due to the indirection introduced, so they have to offer significant value if you introduce one.
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/ae0fd2f6-6806-4b1b-816c-fb1782bac63c%40googlegroups.com.
How can we change the service gateway ? For example, if I want to use Nginx as service gateway with Stormpath (authentification SaaS) script (https://github.com/stormpath/stormpath-nginx) inside to manage security, how can I say to Lagom where is my Nginx ? How do I register routes in Nginx with Lagom (assume that I know the Nginx API to register/deregister data) ?
To view this discussion on the web visit https://groups.google.com/d/msgid/lagom-framework/d32998bf-9bda-4190-88bc-16b7346714c6%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to lagom-framework+unsubscribe@googlegroups.com.
To post to this group, send email to lagom-framework@googlegroups.com.