News for hackers. Stuff that matters.
Re:Majority of web apps could just run on a single server by Animats on Sunday March 24, 2024 @03:42PM (#39809759)
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.

Re:Majority of web apps could just run on a single server by throwaway63467 on Sunday March 24, 2024 @03:56PM (#39809902)
Go can even serve traffic directly without a frontend server, ACME support for TLS is also great.
Re:Majority of web apps could just run on a single server by moondev on Sunday March 24, 2024 @03:49PM (#39809829)
You 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.
Re:Majority of web apps could just run on a single server by Animats on Sunday March 24, 2024 @05:01PM (#39810494)
Right, but the interpreted languages will be on the slow side, which matters with the limited resources of shared hosting.
Re:Majority of web apps could just run on a single server by LtWorf on Sunday March 24, 2024 @05:55PM (#39810862)
Then write C++ if you want fast :D
Re:Majority of web apps could just run on a single server by nojvek on Monday March 25, 2024 @08:11AM (#39815310)
Slow is relative unless you actually benchmark.

V8 has come a really long way for JS.