4 ms·
try 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 ng
by halayli 9y ago
try 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.