You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Michael Rüfenacht edited this page Jun 8, 2018
·
2 revisions
Edit (June 8th):
Somehow this functionality seems to be supported by the loopback-connector-remote. I was not able to understand their code and don't see how it is working.
Target of this document is to define a strategy on how to query other services within our microservice cluster.
The client (residing in service A) needs to resolve the information on how to query the remote service B.
Therefore it needs the service name and lookup the service's IP (dns)
It needs to be able to discover the base path of the api
Based on this information the client needs to create a dedicated rest datasource (one for each service)
Via options request on the api it can get a list of available endpoints (request on the api root)
The list of endpoints should probably contain a timestamp (e.g. when the api got started the last time), so the client could poll on changes
Via options request on each of the delivered endpoints, the client can load the raw definitions of the model