Closed emmelmann-fokus closed 8 years ago
One proposition of message exchange:
X is the entity requesting the protostub (Application, Hiperty, MessageBus)
X -------loadStub(domain, protostubTag, protoStubVersion-->Runtime UA
Runtime UA gets protostub descriptor and then source code from the catalogue and retrieves it asynchronously to X.
X<-----------protostubCode-------Runtime UA
X uses the retrieved code and the Service Provider Sandbox Manager to isntante the protoStub. X---instantiateProtoStub(code)------> Service Provider Sandbox Manager
Then X can register the protostub, or Sandbox manager does it.
Can you please update the diagram from deployProtoStub
I think we can use diagram flows like above to make sketches of messages during call conferences so that we have the same understanding in the end. What do you think?
I've updated the diagram and the textual description according to feedback I've received. pls have a look.
Regarding, your proposal @aoncorici, we don't see advantages of having the source code passed as an input parameter and we would prefer to have it downloaded from the sandbox also for security reasons. The plantuml language is very similar to what you just provided above.
According to today Telco it was decided to pass the source code as input parameter and have the download performed by the runtime ua. This way the runtime ua is the only component downloading the deployable components in the runtime, handle any security issues (authentication, validation,..) and decide which protocol to use (HTTPS , CoAP).
A Runtime Catalogue API will be provided soon by Fokus to let download the protostub (eg getProtoStubDescriptor(...), getProtostubSourceCode( ..) ) and the hyperty source code (getHypertyDescriptor(...), getHypertySourceCode( ..) ).
Notes on https://github.com/reTHINK-project/core-framework/blob/master/docs/specs/runtime/dynamic-view/basics/deploy-protostub.md
Please address the following open issues and make changes: