Description
Hi folks.
In the last few releases, the Service Flavor has been implemented and partially tested.
I'm currently skipping all the details that have been already provided by @andreacv98 in several occasions and I will try to summarize the details in schemas.
Current situation
The current design and implementation has the following schema.
Please, bare in your mind that the REAR ends after the colored boxes.
What I want to point out in this issue is that we have two possible scenarios in this implementation that depends on how the Service is consumed (the blue arrows depicted into the schema):
- The service is hosted on the Provider cluster (
hostingPolicy=Provider
). - The service is hosted on the Consumer cluster (
hostingPolicy=Consumer
).
We can differentiate this approach by looking both the type of Liqo Peering and by the way the Service is consumed.
Please note the aterisks:
*Provider-to-Consumer-peering: this is needed when hostingPolicy=Consumer
.
**Consumer-to-Provider-peering: this is needed when hostingPolicy=Provider
.
However, some feedback has been received in order to support an additional scenario.
Extended solution
The scenario that come out from other people feedback is when having services that are hosted on external endpoint, neither on the Provider nor on the Consumer.
One example could be an application that has both a client and a server component, where we would need to install only the client.
So, a schema that follows this idea would be looking like the following shcema
Please, note that the REAR protocol involves only the Consumer and the Provider.
The External Endpoint is a third actor that is not involved into the protocol and it just provide access to a Service advertised and negotiated by the Provider.
Here, the Provider mainly acts as a broker to a third-party Service.
In this case, we could decide whether is worth it to specify a different hostingPolicy (e.g. hostingPolicy=External
) or to assume a Service as External when no hostingPolicy is specified.
Waiting for any feedback you may have.
Thanks,
Francesco