3 ms·
This would be easily achievable by having 2 processes: one, which accepts the socket connections and relays them to the subprocess which does the actual work. N
by _ph_ 9y ago
This would be easily achievable by having 2 processes: one, which accepts the socket connections and relays them to the subprocess which does the actual work. New subprocesses could be started any time for updates, without killing existing connections. All new connections would be handled by the new subprocess.
- Can_Not 9y agoSo, basically what you get for free in erlang and PHP, but not in golang?
- _ph_ 9y agoRight, as Go is compiled into a static executable, you can't do code updates on the fly that easy. A small price to pay in a production environment. On the other side, you do have all compiler checks run while building.