▲ 7 r/SysAdminBlogs+4 crossposts

Socket-Activation for a Go HTTP service on MS Windows with IIS + ASP.NET Core "Out-Of-Process" hosting.

ASP .NET's out of process hosting (from the .NET Hosting Bundle) can be used with any web service, not just those written for/with a .NET language. Here's an example how to use it with a static Go executable that exposes a simple web service.

poweruser.blog
u/_jindo_ — 6 days ago
▲ 1 r/golang

Socket-Activation for a Go HTTP service. Part 2: On MS Windows with IIS + ASP.NET Core "Out-Of-Process hosting".

How to run a Go HTTP service on MS Windows only when it actually receives requests to save cpu/memory. This example uses only native Microsoft interfaces, besides Go and the Go stdlib.

reddit.com
u/_jindo_ — 7 days ago
▲ 18 r/SysAdminBlogs+2 crossposts

Socket-Activation for a Go HTTP service on Linux with systemd

systemd on Linux can run your Go webapp only when it actually receives requests. With this, your Go executable will start with the first request it receives - and that first request will succeed. A lightweight alternative to running your service permanently in the background. And maybe also an alternative to deploying local web apps to Desktop systems with something heavy like Electron.

poweruser.blog
u/_jindo_ — 12 days ago