I'm currently using express-rate-limit
module to block multiple requests from the same ip
or logged in user account in my node server, and this is working pretty good against DoS
attacks. This server is a small local business that requires only one instance, as it doesn't have too many users and it's computing requirements aren't too intensive.
I've been reading a lot about nginx
lately, and many people recommends using it in node servers, but I can't see the major advantages of using it in this kind of application.
How would nginx
be better for my application? What can it do that other npm modules
can't in terms of security for a single server application?