Service Deployment
Last updated
Last updated
A Registry contract will be deployed on the chain in advance, which manages all the function information. The manager contract is associated with a function, and it is a one-to-one relationship. It manages which workers can deploy the function, as well as the function code, version, and other information. As shown below:
When a worker needs to deploy a function developed by a developer, it needs to register its own worker address to the manager contract. The manager will generate a deployment event. After the worker’s FaaS cluster receives this event, it parses the event and starts the service. The sequence diagram is as follows: