Push server
The push server is the intermediary for interaction between the orchestrator and executable files during operation.
Sequence of executable file launch
Upon launch, the executable file registers a public channel on the push server. The channel name is formed based on the "task type.uid" principle. For example: "face-detect.5141239e-faaa-11eb-ac62-1e00da0e0552".
After creating the channel, the push server sends a webhook to the orchestrator with information about the event.
The executable file connects to this channel, after which the orchestrator receives a webhook with information about the event.
Next, the orchestrator can send video streams to executable files. The push server API is used for this.
After the executable file is stopped, it leaves the channel.
After all listeners are disconnected, the channel is deleted.
The executable file also connects to the stats and raw-events channels. In the stats channel, the executable file sends statistics on the resources consumed and the status of video streams processed on it. In the raw-events channel, the executable file sends generated events.