Hacker News new | ask | show | jobs
by dogma1138 3582 days ago
If that's the case you should use HTTP pipelining usually to bundle multiple requests via a single tcp connection.

https://en.m.wikipedia.org/wiki/HTTP_pipelining

Have it sitting in the background waiting for the controller to ask it to do something, you can manage the sockets and you can make a request queue on your end if you getting into resource cap issues.