Description
Hi everyone.
I want to highlight that the current implementation has some drawbacks that are worth them to stress.
In the Service Flavor implementation, the Consumer can choose whether running the provided Service locally or remotely through the field hostingPolicy
.
When the Consumer chooses to run it locally (hostingPolicy=local
), in the current implementation we have the following scenario:
Basically, the provider intrinsically setup a Liqo peering within the Reservation phase so it can offload its application.
However, this situation can lead to the following issues:
- The Consumer could not have enough resources to host the offloaded applications
- The security infrastructure that should be upon the whole FLUIDOS Node architecture is not used (Verifiable Credentials, etc.) as the peering is set automatically
- The REAR protocol is broken as we're introducing new interactions within the standard workflow
As such, what I suggest to do it is to have a behavior like the following:
Here, the Consumer can basically ask a Service with hostingPolicy=true
only if it already offers a Peering to the Provider at issue.
In my opinion, this would be a cleaner as well as a safer approach to implement this use case.
Eager to receive any feedback.
Regards,
Francesco