Function | Initiator | Receiver | Method | Routing Method | Description |
---|---|---|---|---|---|
Messager | Service | Edge | Publish | EdgeID+Topic | Must publish to a specific EdgeID, the default topic is empty. The edge calls Receive to receive the message, and after processing, must call msg.Done() or msg.Error(err) to ensure message consistency. |
Edge | Service or External MQ | Publish | Topic | Must publish to a topic, and Frontier selects a specific Service or MQ based on the topic. | |
RPCer | Service | Edge | Call | EdgeID+Method | Must call a specific EdgeID, carrying the method name. |
Edge | Service | Call | Method | Must call a method, and Frontier selects a specific Service based on the method name. | |
Multiplexer | Service | Edge | OpenStream | EdgeID | Must open a stream to a specific EdgeID. |
Edge | Service | OpenStream | ServiceName | Must open a stream to a ServiceName, specified by service.OptionServiceName during Service initialization. |
Error | Description and Handling |
---|---|
io.EOF | Receiving EOF indicates that the stream or connection has been closed, and you need to exit operations such as Receive and AcceptStream. |
io.ErrShortBuffer | The buffer on the sender or receiver is full. You can adjust the buffer size by setting OptionServiceBufferSize or OptionEdgeBufferSize. |
apis.ErrEdgeNotOnline | This indicates that the edge node is not online, and you need to check the edge connection. |
apis.ServiceNotOnline | This indicates that the microservice is not online, and you need to check the microservice connection information or connection. |
apis.RPCNotOnline | This indicates that the RPC called is not online. |
apis.TopicNotOnline | This indicates that the topic to be published is not online. |
Other Errors | There are also errors like Timeout, BufferFull, etc. |