Replies: 1 comment 4 replies
-
When you call these 50 devices from the Command APIs, do you need them to return the Event response via REST? In addition, you can set the environment variable |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In device-modbus-go, I added an intermediate layer device service service to parse device parameters and other functions. After parsing, it calls the restful interface in the command service of device-modbus-go. Activating automatic collection for fifty devices would lead to high CPU usage for these two services (each read operation on device resources must go through intermediate layer parsing and forwarding). I wonder if frequent creation of connections for HTTP requests consumes resources, but changing it to messaging's command using message bus mechanism still shows no significant improvement. What optimization suggestions do you have for this situation?
Beta Was this translation helpful? Give feedback.
All reactions