While writing web applications, I often need to offload compute-heavy tasks to an asynchronous worker script, schedule tasks for later, or even write a daemon that listens to a socket to communicate with clients directly.
https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6