SlideShare a Scribd company logo
9
Most read
11
Most read
12
Most read
Md. Waresul
Islam
OUTLINE
Introduction to Nginx
Tested OS and platforms
Versions
Features
Reverse Proxy
Load balancing
Load balancing methods
Advantages of Nginx
Disadvantages of Nginx
Who uses Nginx?
References
INTRODUCTION TO NGINX
 Pronounced as “Engine X”
 Nginx is a web server
 It is free and open source.
 Created by Igor Sysoev
 First publicly released in 2004
 Also used as a reverse proxy, load balancer, mail proxy and HTTP
cache.
MD. WARESUL ISLAM
TESTED OS AND PLATFORMS
MD. WARESUL ISLAM
VERSIONS
There are two versions of Nginx
Nginx (Free)
Nginx Plus (Paid version)
Nginx Plus offers additional features that not included in Nginx, such
as
active health checks
session persistence based on cookies
DNS-service-discovery integration
Cache Purging API
AppDynamic,
MD. WARESUL ISLAM
FEATURES
HTTP proxy and Web server features
Ability to handle more than 10,000 simultaneous connections with a low
memory
Name and IP address-based virtual servers
Reverse proxy with caching
Load balancing with in-band health checks
Limiting the number of simultaneous connections or requests coming from
one address;
Support for HTTP/2 with weighted and dependency-based prioritization.
IPv6-compatible
MD. WARESUL ISLAM
FEATURES CONTD.
Mail proxy features
TLS/SSL support
STARTTLS support
User redirection to IMAP or POP3 server using an external
HTTP authentication server;
User authentication using an external HTTP authentication server and
connection redirection to an internal SMTP server;
MD. WARESUL ISLAM
REVERSE PROXY
Reverse proxy server retrieves resources on behalf of a client from one or
more servers.
Resources are returned to the client, appearing as if they originated from
the proxy server itself.
MD. WARESUL ISLAM
LOAD BALANCE
Distribution of network
or application traffic
across multiple servers.
Load balancer sits
between client devices
and backend servers.
MD. WARESUL ISLAM
LOAD BALANCING METHODS
The following load balancing methods are supported in Nginx:
Round-robin.
Least-connected.
IP-hash.
Weighted load balancing
MD. WARESUL ISLAM
DEFAULT LOAD BALANCING
CONFIGURATION
To configure load balancing
for HTTPS instead of HTTP,
just use “https” as the protocol
Round-robin: Requests to the application servers are distributed
in a round-robin fashion.
MD. WARESUL ISLAM
LEAST CONNECTED LOAD
BALANCING
With the least-connected load balancing, nginx will try not to overload a
busy application server with excessive requests, distributing the new
requests to a less busy server instead.
MD. WARESUL ISLAM
IP-HASH LOAD BALANCING
There is no guarantee that the same client will be always directed to
the same server.
A hash-function is used to determine what server should be selected
for the next request (based on the client’s IP address).
MD. WARESUL ISLAM
WEIGHTED LOAD BALANCING
When the weight parameter is specified for a server, the weight is
accounted as part of the load balancing decision.
With this configuration, every 5 new requests will be distributed across the
application instances as the following: 3 requests will be directed to srv1,
one request will go to srv2, and another one to srv3.
MD. WARESUL ISLAM
ADVANTAGES OF NGINX
Lightweight with small memory footprint
Handles connections asynchronously
MD. WARESUL ISLAM
ADVANTAGES OF NGINX CONTD.
It is more modern in design than alternative web servers
It is event based, so we can handle more connections with less overhead
due to context switching
Uses predictable memory under load
Provides high level of concurrency
Serves static content quickly
Use single thread
Health checks
MD. WARESUL ISLAM
DISADVANTAGES OF NGINX
Difficulties in supporting HTTP/1.0 with backend communication.
It does not accommodate as many modules / extensions as Apache.
It has less community support and documentation than Apache.
MD. WARESUL ISLAM
WHO USES NGINX?
MD. WARESUL ISLAM
REFERENCES
https://en.wikipedia.org/wiki/Nginx
https://www.nginx.com/resources/wiki/
https://nginx.org/en/docs/
MD. WARESUL ISLAM

More Related Content

PPTX
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
ODP
Introduction to Nginx
PPTX
Les principaux types de système d'information
PPTX
NGINX Installation and Tuning
PPT
Intro to MySQL Master Slave Replication
PDF
Soutenance PFE ingénieur génie logiciel
PPT
RedHat Linux
 
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
Introduction to Nginx
Les principaux types de système d'information
NGINX Installation and Tuning
Intro to MySQL Master Slave Replication
Soutenance PFE ingénieur génie logiciel
RedHat Linux
 

What's hot (20)

PPTX
High Availability Content Caching with NGINX
PPTX
NGINX: Basics and Best Practices
PDF
Nginx Essential
PPTX
Learn nginx in 90mins
PDF
Nginx dhruba mandal
PPTX
NGINX: High Performance Load Balancing
PDF
NGINX ADC: Basics and Best Practices – EMEA
PDF
NGINX: Basics and Best Practices EMEA
PPTX
5 things you didn't know nginx could do
PPTX
NGINX: Basics & Best Practices - EMEA Broadcast
PDF
Load Balancing with Nginx
PPTX
NGINX: High Performance Load Balancing
PPTX
Load Balancing and Scaling with NGINX
PPTX
NodeJS - Server Side JS
PPTX
PDF
IT Automation with Ansible
PPTX
Jenkins tutorial
PDF
Automation with ansible
PDF
Ansible 101
PDF
Nginx Architecture
High Availability Content Caching with NGINX
NGINX: Basics and Best Practices
Nginx Essential
Learn nginx in 90mins
Nginx dhruba mandal
NGINX: High Performance Load Balancing
NGINX ADC: Basics and Best Practices – EMEA
NGINX: Basics and Best Practices EMEA
5 things you didn't know nginx could do
NGINX: Basics & Best Practices - EMEA Broadcast
Load Balancing with Nginx
NGINX: High Performance Load Balancing
Load Balancing and Scaling with NGINX
NodeJS - Server Side JS
IT Automation with Ansible
Jenkins tutorial
Automation with ansible
Ansible 101
Nginx Architecture
Ad

Similar to Introduction to NGINX web server (20)

PPTX
Load Balancing Container with Nginx
PPTX
Nginx Deep Dive Kubernetes Ingress
PPTX
Delivering High-Availability Web Services with NGINX Plus on AWS
PPTX
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
PDF
Web servers presentacion
PDF
IRJET- An Improved Weighted Least Connection Scheduling Algorithm for Loa...
PDF
Microservices with NGINX pdf
PPTX
Load Balancing Apps in Docker Swarm with NGINX
PDF
ACE - Comcore
PDF
Openstack HA
PPTX
Load balancing in cloud computing.pptx
PPT
clustering and load balancing
PDF
Clustering - october 2006
PDF
How To Configure Nginx Load Balancer on CentOS 7
PPTX
Basics of NGINX
PPTX
Virtual Deep-Dive: Citrix Xen Server
PDF
Load Balancer Device and Configurations.
PPTX
My Dissertation 2016
PPTX
AWS_ELB_ppt.pptx
PDF
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
Load Balancing Container with Nginx
Nginx Deep Dive Kubernetes Ingress
Delivering High-Availability Web Services with NGINX Plus on AWS
What’s New in NGINX Ingress Controller for Kubernetes Release 1.5.0
Web servers presentacion
IRJET- An Improved Weighted Least Connection Scheduling Algorithm for Loa...
Microservices with NGINX pdf
Load Balancing Apps in Docker Swarm with NGINX
ACE - Comcore
Openstack HA
Load balancing in cloud computing.pptx
clustering and load balancing
Clustering - october 2006
How To Configure Nginx Load Balancer on CentOS 7
Basics of NGINX
Virtual Deep-Dive: Citrix Xen Server
Load Balancer Device and Configurations.
My Dissertation 2016
AWS_ELB_ppt.pptx
MySQL Load Balancers - MaxScale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
Ad

Recently uploaded (20)

PDF
Insiders guide to clinical Medicine.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Insiders guide to clinical Medicine.pdf
Pharma ospi slides which help in ospi learning
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
01-Introduction-to-Information-Management.pdf
Anesthesia in Laparoscopic Surgery in India
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
human mycosis Human fungal infections are called human mycosis..pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
TR - Agricultural Crops Production NC III.pdf
Pre independence Education in Inndia.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Final Presentation General Medicine 03-08-2024.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Microbial disease of the cardiovascular and lymphatic systems
Mark Klimek Lecture Notes_240423 revision books _173037.pdf

Introduction to NGINX web server

  • 2. OUTLINE Introduction to Nginx Tested OS and platforms Versions Features Reverse Proxy Load balancing Load balancing methods Advantages of Nginx Disadvantages of Nginx Who uses Nginx? References
  • 3. INTRODUCTION TO NGINX  Pronounced as “Engine X”  Nginx is a web server  It is free and open source.  Created by Igor Sysoev  First publicly released in 2004  Also used as a reverse proxy, load balancer, mail proxy and HTTP cache. MD. WARESUL ISLAM
  • 4. TESTED OS AND PLATFORMS MD. WARESUL ISLAM
  • 5. VERSIONS There are two versions of Nginx Nginx (Free) Nginx Plus (Paid version) Nginx Plus offers additional features that not included in Nginx, such as active health checks session persistence based on cookies DNS-service-discovery integration Cache Purging API AppDynamic, MD. WARESUL ISLAM
  • 6. FEATURES HTTP proxy and Web server features Ability to handle more than 10,000 simultaneous connections with a low memory Name and IP address-based virtual servers Reverse proxy with caching Load balancing with in-band health checks Limiting the number of simultaneous connections or requests coming from one address; Support for HTTP/2 with weighted and dependency-based prioritization. IPv6-compatible MD. WARESUL ISLAM
  • 7. FEATURES CONTD. Mail proxy features TLS/SSL support STARTTLS support User redirection to IMAP or POP3 server using an external HTTP authentication server; User authentication using an external HTTP authentication server and connection redirection to an internal SMTP server; MD. WARESUL ISLAM
  • 8. REVERSE PROXY Reverse proxy server retrieves resources on behalf of a client from one or more servers. Resources are returned to the client, appearing as if they originated from the proxy server itself. MD. WARESUL ISLAM
  • 9. LOAD BALANCE Distribution of network or application traffic across multiple servers. Load balancer sits between client devices and backend servers. MD. WARESUL ISLAM
  • 10. LOAD BALANCING METHODS The following load balancing methods are supported in Nginx: Round-robin. Least-connected. IP-hash. Weighted load balancing MD. WARESUL ISLAM
  • 11. DEFAULT LOAD BALANCING CONFIGURATION To configure load balancing for HTTPS instead of HTTP, just use “https” as the protocol Round-robin: Requests to the application servers are distributed in a round-robin fashion. MD. WARESUL ISLAM
  • 12. LEAST CONNECTED LOAD BALANCING With the least-connected load balancing, nginx will try not to overload a busy application server with excessive requests, distributing the new requests to a less busy server instead. MD. WARESUL ISLAM
  • 13. IP-HASH LOAD BALANCING There is no guarantee that the same client will be always directed to the same server. A hash-function is used to determine what server should be selected for the next request (based on the client’s IP address). MD. WARESUL ISLAM
  • 14. WEIGHTED LOAD BALANCING When the weight parameter is specified for a server, the weight is accounted as part of the load balancing decision. With this configuration, every 5 new requests will be distributed across the application instances as the following: 3 requests will be directed to srv1, one request will go to srv2, and another one to srv3. MD. WARESUL ISLAM
  • 15. ADVANTAGES OF NGINX Lightweight with small memory footprint Handles connections asynchronously MD. WARESUL ISLAM
  • 16. ADVANTAGES OF NGINX CONTD. It is more modern in design than alternative web servers It is event based, so we can handle more connections with less overhead due to context switching Uses predictable memory under load Provides high level of concurrency Serves static content quickly Use single thread Health checks MD. WARESUL ISLAM
  • 17. DISADVANTAGES OF NGINX Difficulties in supporting HTTP/1.0 with backend communication. It does not accommodate as many modules / extensions as Apache. It has less community support and documentation than Apache. MD. WARESUL ISLAM
  • 18. WHO USES NGINX? MD. WARESUL ISLAM