poweruser.blog

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
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help