The hardware device uploads the collected data to a cache server
Establish an Application Server to handle app requests and get data from the current cache server
The client app accesses the application server In general, it is asynchronous and there is no inter-thread communication. In addition, only when each thread is independent of each other can it be truly parallel
If inter-thread communication (waiting for notify) is required, it is basically equivalent to serial. Determine the implementation of cache server and application server based on the amount of data collected and whether the collected historical data needs to be saved. Please add some questions first. . .
That’s not communication between threads, but communication between different processes, and it should be across machines. You can:
The app establishes a long connection with the server, and then the server pushes the data to the app
The app regularly queries the server for data There are many other methods. It depends on your environment and business needs to choose the most suitable method.
The hardware device uploads the collected data to a cache server
Establish an Application Server to handle app requests and get data from the current cache server
The client app accesses the application server
In general, it is asynchronous and there is no inter-thread communication. In addition, only when each thread is independent of each other can it be truly parallel
If inter-thread communication (waiting for notify) is required, it is basically equivalent to serial.
Determine the implementation of cache server and application server based on the amount of data collected and whether the collected historical data needs to be saved.
Please add some questions first. . .
That’s not communication between threads, but communication between different processes, and it should be across machines.
You can:
The app establishes a long connection with the server, and then the server pushes the data to the app
The app regularly queries the server for data
There are many other methods. It depends on your environment and business needs to choose the most suitable method.