Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Nobody, nobody, writes application servers with the intent of having them exposed to the public internet

For rust, go, lua (via nginx openresty) and a few others this is a viable path. I probably wouldn't do it with node (or bun or deno), python, or similar but there are languages where in certain circumstances it is reasonable and might be better.



For Go, net/http is not something you should expose to the public internet, there's no secret sauce in there. It will just die to the first person to hit it with a slowloris or other DOS attack. Same with the common C++ options like boost.beast unless you're writing the logic yourself (but why bother? Just reverse proxy).

I'm unfamiliar with the common rust frameworks for http, but find it unlikely the situation is very different.


boost.beast also only talks HTTP/1.1 AFAIK, so if you want HTTP/2 or /3 on your frontend then you must put it behind a reverse proxy anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: