2 ms·
Yes. You don't even need containers. Write your program as one Go executable and drive it from fcgi. Go is fast enough that you can get a lot of work done on a
by Animats 3y ago
Yes.
You don't even need containers. Write your program as one Go executable and drive it from fcgi. Go is fast enough that you can get a lot of work done on a minimal server. Fgci provides "orchestration" of multiple processes, plus crash and restart handling.
Also, there's much less attack surface. If your minimal Go program can only respond to specific requests, there's not the problem of an attacker targeting some unused feature of the site. Go has subscript checking, so you don't have buffer overflow vulnerabilities.
- moondev 3y agoYou don't even need to write your program in go or configure and deploy with fcgi. Write it in whatever you want and stick it in a container.
- throwaway63467 3y agoGo can even serve traffic directly without a frontend server, ACME support for TLS is also great.