project-flogo / core

Flogo Core is the core flogo library used create and extend Flogo applications.
BSD 3-Clause "New" or "Revised" License
109 stars 55 forks source link

External Service Registration/Discovery #30

Open fm-tibco opened 5 years ago

fm-tibco commented 5 years ago

Current behavior:

Expected behavior:

Add a standard way to register trigger as a service in an external registry and also to look one up in an activity for example.

Add support for a pluggable external service registration/discovery implementation.

What is the motivation / use case for changing the behavior?

Additional information you deem important (e.g. I need this tomorrow):

fm-tibco commented 5 years ago

By external service registration/discovery, I mean service registration using for example kubernetes, consul, etcd, or docker. With something like this, you can for example, look up a REST micro-service using a name instead of an exact host and port

skothari-tibco commented 5 years ago

I think we can use functions. Thoughts @fm-tibco @mellistibco @vijaynalawade

vijaynalawade commented 5 years ago

@skothari-tibco : Though nice idea, using mapper functions will limit this capability. e.g. what if I want to dynamically enable/disable this capability? Given there are many services that offer such capability (Consul, Eureka, etcd, Zookeeper etc), keeping abstraction is very important for productivity. I should be able to switch to different service without making any change in my application.