NGINX is a high performance open source web server that offers the static content of a website quickly and easily to configure. It offers load balancing, reverse proxy and streaming facilities, as well as managing thousands of simultaneous connections. The result of their contributions is greater speed and scalability. Edgar higuerey Feb 17, 20 | 6 min read what is NGINX If you want a web server that you don’t have to worry about the number of simultaneous connections made to the website , you should know about NGINX. By the way, this is just one of its many features as it also offers features like HTTP load balancer, reverse proxy, and more.

According to the data of the statistical comparison on the use of web servers carried out by the website W3Techs , NGINX ranks second, with 30.7% of the sites using this technology. Apache has 43.1% and Microsoft IIS, 8%. It is an excellent position, Lebanon WhatsApp Number List as it has been in the market for less time than the other options. So that you understand why NGINX continues to grow and know how to create a website that processes multiple simultaneous connections, we made this article with the following topics: What is NGINX? When did it arrive and who launched it? How does it work? What are their characteristics? Why use the NGINX web server? What are the differences between NGINX and Apache ;Do you want to know more about this technology? Keep reading! What is NGINX? NGINX is a high performance, open source web server.

It has an advanced architecture based on events – EBA, or Event-Based Architecture. This feature allows multiple simultaneous connections, providing more speed and scalability . NGINX delivers static website content quickly, is easy to configure, and has low resource consumption. Due to all these characteristics, the server is used by large companies such as Microsoft, IBM, Google, , among others. When did NGINX arrive and who launched it? Its developer was software engineer Igor Sysoev, who wrote NGINX in C language in 2002. The correct pronunciation of the server name is “Engine-X” and its first public version was released in 2004. The challenge, known as C10K, was to create a web server that could handle 10,000 connections simultaneously to deliver a product that could work with the reference set for the modern web, yet with digital transformation , that number has still become higher. How does NGINX work? Web requests on other servers , such as Apache, work individually, that is, the user requests a page through the HTTP or HTTPS protocol , which processes and returns the result. This process is called by an individual thread, which is performed for each request made from the server. NGINX works based on events. So instead of making a direct request to the server, it runs a master process, called a worker, and various worker processes, called worker connections.

This whole process works continuously and asynchronously . That way, when there is a processing request, the worker connections are made, which make the request to the master process, which in turn processes and returns the result. This functionality allows the handling of numerous simultaneous connections, since each worker connection is capable of processing 1024 requests. When the server is running, each worker loads a chain of modules, depending on how the configuration is done during installation. In this way, each request is made with all the configured resources in operation. What are the characteristics of NGINX? NGINX has an extensible modular architecture , which makes it easy to extend resources for those who want to change their source code. The main module is responsible for handling the connection, and in addition, there are a number of modules for different types of processing. Check out some of them: Load balancing Load balancing is an extremely important resource for those who need a highly available website , as it enables the distribution of service requests between servers.

That way, when there is an increase in requests to the server, such as an increase in traffic, NGINX can direct the flow to other servers that are in the configuration file. There are three possibilities for load distribution on the NGINX. It can be done equally between the configured servers, distributed to the server that has few connections at the moment, or it is possible to determine the IP address of each client for each specific server. When using load balancing and Google Analytics , it is necessary to make the tracking code go through all the servers used. For that, it is necessary to use the reverse proxy function so that the Analytics configuration file is available. This way, each time a request is made, the corresponding HTTP headers will be updated. Reverse proxy Before talking about reverse proxy, let’s briefly explain what a proxy is. In practice, it acts as an intermediary server between computers on a network and the web server . It is used as a page cache, to save bandwidth resources and speed up loading.

Reverse proxy, on the other hand, is a web server that receives connection requests and manages what will be required on the main server or checks if the request is already available in cache. NGINX therefore offers this feature, which can be easily configured in its configuration file. Streaming Another feature of NGINX is to offer a native module for streaming. Therefore, it allows a number of settings on how the server will handle MP4 and FLV content, such as the size of the buffer used, the timeout time, etc. Why use the NGINX web server? The server offers a number of features, which turn into various benefits when used on a website. See why you should use NGINX! Speed Because its architecture is event-based, requests to the server are made faster, as there is better use of memory and CPU resources . In addition, it offers excellent performance by making static files available, such as documents, images, HTML files , among others. Scalability By offering resources such as load balancing, the server enables rapid escalation of requests in different situations.

Therefore, it is an excellent alternative to use in cloud applications . Compatibility Another benefit of using the server is its compatibility with the various web applications used in the market, such as WordPress , Joomla, Python, among others. Easy setup The server configuration process is simple, as it works according to the policies that must be specified in the configuration file. What are the differences between NGINX and Apache? Apache is the main competitor to NGINX , used by 43.1% of sites, according to the survey mentioned above. There are some differences between the two servers and you need to know them to make a good decision. Operating system compatibility The two servers work in a UNIX-based environment, such as LINUX and its variations. With respect to the Windows platform, NGINX has a lower performance in this environment. Settings Apache is configured in a decentralized way, that is, it uses the “.htaccess” file extended in the application’s directories and the loading of its modules is done at runtime. In NGINX, the configuration is centralized in the file “nginx.conf” and its modules are loaded dynamically.

Leave a Reply

Your email address will not be published.