[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: wiring microservices together



You can reference services via DNS. If you have 2 pods in the same project, the code can just refer to each service by its short name, e.g. "db" or "webapp" or whatever. DNS resolution will expand it to the fully qualified name for the service.

On Tue, Jan 26, 2016 at 12:57 PM, Candide Kemmler <candide intrinsic world> wrote:
I understand how it is possible, using OpenShift to create a few pods as microservices and to wire them together to create a composite application. Each pod/microservice gets its own build and deployment lifecycle, which is great. With my current knowledge the way I would gradually build this application is less than optimal:

I would start by deploying service 1, note its IP address then,
I would deploy service 2 and wire service 1's IP address as it depends on it
...and so on

So I'm wondering if there is a way that I can discover services at runtime, possibly by name. I know about fabric8's api but at first glance it seems a bit cumbersome to use.

Ideally I would like to deploy the entire app made of multiple services in one step, as a template, for instance. Again what I don't understand is how the wiring of service is accomplished in a generic way.

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]