'Streaming or REST calls for one-minute updates?
Let's say you're sending data from IoT appliances to a central server at intervals of one minute.
This interval is NEVER going to change.
Would you go with some type of streaming, long-lived connection (which type?) or just make synchronous HTTP calls at that interval?
Solution 1:[1]
Don't make a long-lived connection.
- if something temporary breaks you'll have to deal with the reconnection
- you're permanently keeping a TCP connection for each appliance for nothing.
Let the appliances send an HTTP call whenever they have something to say.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user2061037 |
