5 ms·
Surely this is just an added feature to a existing program. Having it inbuilt is useful for testing. Also not sure whether doing a fastcgi loop and requiring
by emmelaich 9y ago
Surely this is just an added feature to a existing program.
Having it inbuilt is useful for testing.
Also not sure whether doing a fastcgi loop and requiring another http server to frontend it really is simpler!
- halayli 9y agotry embedding a web server inside your program and have it manage threads, event loops, and not be vulnerable to security attacks and compare it with a simpe nginx config pointing to your application and you’ll get an idea which one is simpler. not to mention you’ll need to get around all the quirks of whatever lib u use, learn its api, and deal with platform compat.
- emmelaich 9y agoAn embedded web server typically doesn't have to be very performant. It's just for convenient runtime access to the programs innards. In fact in some cases it may only accept one client at a time.