Replies: 1 comment
-
axum doesn’t deal the connection handling. You’ll probably wanna use hyper’s low level connection API. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
background:
I need to manage a lot of hardware connections (via MODBUS), because in some cases, I will dynamically remove or add devices. I want to implement each connection with a service (because their functions are consistent), and then notify the main service through the channel to create and load or delete and unload a connection service. I don't know if I can use AXUM to achieve it, the service is implemented using rpc (tonic).
Lessons learned:
Already tried it, with normal network, it works fine. The real situation is that the target network jitters frequently, and continuous attempts to connect or timeout retries will slow down the efficiency of the entire application, because the connector is locked and wrapped, and the efficiency cannot meet the customer's requirements for timeliness.
Beta Was this translation helpful? Give feedback.
All reactions