Socket-Activation for a Go HTTP service. Part 1: On Linux with systemd. (opens in new tab)
How to make systemd run a Go HTTP service only when needed to save cpu/memory\. 1\.\) The problem I usually hesitate to implement things that I run locally on my own workstation in the form of a web server service \(even if it would make sense in most ways\)\. Why? Because there's a deployment problem with it: A server process that runs locally in the background constantly consumes some precious local memory and cpu, even if the user currently isn't using the web app actively\. This isn't a p...
Read the original article