4 ms·
You're missing the sysadmin angle of this entirely. Nginx has amazing tooling around load balancing, configuration mgmt, multiple languages, logging options, re
by 234dd57d2c8db 10y ago
You're missing the sysadmin angle of this entirely. Nginx has amazing tooling around load balancing, configuration mgmt, multiple languages, logging options, rewrite rules, rate limiting, file upload size tuning, HTTP tuning in general, the list goes on and on. What if your site needs to support multiple backends like a JVM app, a wsgi app, and an old crufty cgi app. You gonna write backends for all that shit too in Go?
Sorry but I'm not going to be writing ansible code that modifies structs inside of some program then compiles said program. No thank you that sounds like crazy town. Also other sysadmins and infrastructure engineers will actually know how things work and won't have to go reading the source code for some crazy Go app program at 2am that also is a webserver for some reason?
Separation of concerns, use it!!
- weberc2 10y ago> You gonna write backends for all that shit too in Go? The discussion is scoped to a single Go application. No one is proposing replacing NGINX with Go (or anything else) for JVM apps. > won't have to go reading the source code for some crazy Go app program at 2am that also is a webserver for some reason? This is a rephrasing of the question I posed earlier--is it easier to manage configuration in Go source code or NGINX config files. > Separation of concerns, use it!! Concerns can be separated without being in distinct processes or implemented by distinct programmers or implemented in distinct programming languages.
- Can_Not 10y agoYou're free to not use nginx or Apache if you can validate that you are better off without them, but IMHO it sounds like a nightmare of "experimental homemade wheels" being muddled in with business logic.