On nginx introduction and application scenarios

           Brief introduction

nginx is a lightweight web server, which is a program developed by Russian designer Igor Xisuo Fu.

nginx compared to the Tomcat very good performance, can support 5w concurrent connections (and Tomcat can support 200-400), and nginx CPU and memory consumption is very low, running very stable.

Nginx role very much, but we usually take it as a static resource server, server load balancing and reverse proxy server to use.

 

                Scenarios

 

Static Agent:

You can deploy static resource, html js css image ......

 

Load Balancing:

Load balancing (Load Balance) means that the load is spread over a plurality of operation execution units 

The browser you want to access the server, load balancing servers will arrive first, will distribute traffic to a different application server load balancing on top of the server through a certain scheduling algorithm

 

 

Reverse Proxy:

First, let's talk about what is simply a proxy  

Agent: an object to provide a proxy object, the proxy object controlled by the original object reference, in simple terms, is to give a certain external object provides a proxy object, call someone else is calling the object when the proxy, , then controlled by the proxy object proxy object execution.

 

 Reverse Proxy : It is Dui server proxy

After a client, we only need to send the request to the reverse proxy server, the reverse proxy server to select the target server to get the data, and then respond to the client,

At this time, the reverse proxy server and the target server is a server outside, exposed to a proxy server address, hiding the true IP address of the server.

 

Reverse Proxy proxy we have said that we, by the way forward proxy

 

 Forward proxy : to the client proxy

As a client, we want to visit some of the server, but the server shield our visit, then we need a proxy server, the proxy server can access the server we wanted to visit, we can be a client to the proxy server, let him help us visit.

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/yuanvblog/p/11604816.html