1) Nginx is a popular and productive open source HTTP and reverse proxy server that can serve as a front end server.
2) As a front end server, nginx processes requests for static resources, proxies requests to dynamic applications in the back end, and can perform tasks like compression, caching, uploading/downloading, and image processing.
3) The document provides examples of basic nginx configuration for serving static files, proxying requests to backends, setting up virtual hosts, compressing responses, and generating thumbnails.
3. What does your server?
General list:
•Process requests to static resource (css, images, etc)
•Process request to dynamic part (servlet).
•Exchange with database.
•Process schedulers, quartz, etc
•Generate reports, calculate statistic...
One day he may say: "enough!". Be ready!
4. Why sites are dying?
Few problems:
•Weak hardware
•Weak client connection channel
•Lots of requests to static resource (especially images
and video)
•High loads
5. Front end
Front end is an interface between the user and back
end.
Most popular servers to front end role:
•nginx
•lighthttpd
•apache httpd
•...
6. Nginx
Popular and productive
Nginx - is a HTTP and reverse proxy server, as well as
mail proxy server, written by Igor Sysoev.
According to Netcraft nginx served or proxied 12.49%
busiest sites in July 2012.
7. Who are using nginx?
They are:
•Rambler
•Yandex
•Mail.ru
•vk
8. Features and figures
• 100 000 connection per server
• 60 000 requests per second
• 2.5 Mb per 10 000 keep-alive
connections
• No threads
10. What will nginx do?
General function of nginx or
another front end server:
•Static content
•Reserve proxying with caching
•Compression response
•Prepared thumbnails for images
•Uploading, downloading, streaming, ...