Why is thin behind nginx?

Deploying my first web application. I use thin, simple and light. All I need is a configuration file.

But many people use nginx and put several subtle instances in it. What for? Why not just use thin ones? And why use nginx instead of placing three thin instances per one thin instance? Thanks

+5
source share
1 answer

Scalability is the main reason. Although Thin can perform SSL, serve static files, and handle large responses to slow clients, Nginx is best suited for any given processor and memory size. Even better, Nginx can do all this transparently so that the application does not implement anything that could benefit. It is also a decent load balancer.

Once your application scales beyond one machine, you still need something like Nginx, and there is no harm in its implementation from the very beginning. Even if your application does not need to be scaled, there are other reasons for using Nginx - especially if you use more than one web application on the same computer or if the application is modular.

+7
source

All Articles