[转帖]Using NGINX and NGINX Plus as a Web Server

using,nginx,and,plus,as,web,server · 浏览次数 : 0

小编点评

**NGINX's Popularity and Adoption:** * **High Performance:** NGINX handles thousands of concurrent connections efficiently with a smaller number of processes compared to Apache. * **Improved Scalability:** NGINX can handle a significantly larger number of clients, making it suitable for high-traffic websites. * **New Model for Application Delivery:** NGINX enables dynamic content delivery through proxy caching and offloading to specialized backend servers. * **Extensive Feature Set:** NGINX offers a wide range of features, including support for multiple protocols, security, and streaming capabilities. * **Enhanced Security:** NGINX implements strict security measures and is compatible with industry-standard security certificates. **Benefits of Using NGINX or NGINX Plus:** * **Simplified Deployment:** NGINX can be deployed as a single component, reducing infrastructure complexity. * **Improved Performance:** NGINX provides faster response times and lower memory consumption. * **Enhanced Scalability and Performance:** NGINX's advanced architecture allows it to handle a large number of concurrent connections efficiently. * **Reduced Development Effort:** NGINX's configuration is straightforward, reducing the need for technical expertise. * **Full Feature Set:** NGINX Plus provides a comprehensive suite of features, including video streaming, MP4 and FLV playback, and more. **Other Advantages of NGINX:** * **Open-Source and Free:** NGINX is open-source and free to use. * **Large and Active Community:** NGINX has a large and active community of developers and support professionals. * **Comprehensive Documentation and Resources:** NGINX provides extensive documentation and support resources to assist users.

正文

 

2019 update: NGINX has now passed Apache to become the most popular web server for the top 1,000, 10,000, 100,000, and 1 million busiest websites in the world. Why is NGINX seeing such wide and increasing adoption and why should you consider using NGINX or NGINX Plus as your web server?

Why NGINX?

NGINX is much more than just a web server. Traditionally, the web server and the application delivery controller (ADC) or reverse‑proxy load balancer have been deployed as separate components of a web application delivery solution. But creating a scalable and high‑performance web server or ADC requires many of the same techniques. In many environments, one reason to deploy an ADC is to mitigate performance problems with the web server. By combining the ADC and web server into a single tool, NGINX is a really a new type of product for web application delivery, providing performance and scalability at both the ADC and web server layers.

Handling Concurrent Connections

One of the major reasons that people replace their Apache web server with NGINX is to get improved performance. Performance has many aspects, but one of the important areas where NGINX shines is in handling large numbers of concurrent connections.

It’s a challenge to deal with many HTTP clients that each open many connections, and with the latency and other delays involved. Apache’s model of using a thread or process per connection causes high overhead for each connection, which limits the number of connections it can handle. NGINX uses a far more efficient model where a small number of processes can each handle a very large number of connections. This architecture allows a single server to handle a far larger number of clients.

WebFaction ran tests to compare how NGINX and Apache performed when handling different numbers of concurrent connections. First, the results for requests per second:

And memory usage:

As these results indicate, NGINX both performs better and uses less memory than Apache at every level of concurrency. That means that you need a smaller number of NGINX servers to process the same load, with all the benefits that come with that.

Serving Static and Dynamic Content

Another reason users are replacing Apache HTTP Server with NGINX is to adopt a new model for delivering applications made possible by NGINX. NGINX can deliver static content locally, but for dynamic content it acts as proxy in front of other servers that deliver the dynamic application content, thus keeping NGINX lean and leaving the generation of dynamic content to servers that specialize in it, such as FastCGI‑ or uwsgi‑based servers, application servers such as WebSphere, JBoss, and Tomcat, or even other web servers such as Apache.

Much More than Just a Web Server

As we said earlier, NGINX is more than just a high‑performance web server; it is loaded with features. Here are just some of them:

  • Support for multiple protocols – HTTP, HTTPS, SPDY, WebSocket, IMAP, POP3, SMTP
  • Caching
  • Compression
  • SSL termination – TLSv1.1, TLSv1.2, SSL, SNI, PFS, and PCI‑DSS, plus OCSP Stapling
  • HTTP video streaming – MP4, FLV, HDS, and HLS
  • Request filtering
  • Header manipulation
  • Activity monitoring
  • Live binary upgrades to eliminate downtime
  • Graceful restart with non-stop request processing
  • Logging
  • Full reverse proxy and load balancing functionality

For more information on configuring NGINX and NGINX Plus as a web server, check out the NGINX Plus Admin Guide. For information about the full range of functionality that NGINX Plus provides, visit us at nginx.com.

与[转帖]Using NGINX and NGINX Plus as a Web Server相似的内容:

[转帖]Using NGINX and NGINX Plus as a Web Server

https://www.nginx.com/blog/more-fun-with-nginx-plus-health-checks-and-docker-containers/ 2019 update: NGINX has now passed Apache to become the most p

[转帖]Real-Time Web Applications with WebSocket and NGINX

https://www.nginx.com/blog/realtime-applications-nginx/ In the blog post NGINX as a WebSocket Proxy we discussed using NGINX to proxy WebSocket applic

[转帖]Using NGINX Logging for Application Performance Monitoring

https://www.nginx.com/blog/using-nginx-logging-for-application-performance-monitoring/ The live activity monitoring dashboard and API in NGINX Plus tr

[转帖]使用nginx的proxy_store缓存文件加速访问速度

https://www.qiansw.com/using-nginxs-proxystore-cache-file-to-accelerate-access-speed.html nginx的proxy_store可以将后端服务器的文件暂存在本地. 基于此,可以实现nginx的缓存后端服务器文件,加

[转帖]使用cwRsync在Windows的目录之间增量同步文件

https://www.qiansw.com/using-cwrsync-in-the-windows-directory-between-the-incremental-synchronization-file.html rsync 是 Linux 上的一款文件同步工具,他可以以其特有的算法,对两

[转帖]Redis benchmark

https://redis.io/docs/management/optimization/benchmarks/ Using the redis-benchmark utility on a Redis server Redis includes the redis-benchmark utili

[转帖]tidb 如何对 TiDB 进行 TPC-C 测试

https://docs.pingcap.com/zh/tidb/stable/benchmark-tidb-using-tpcc TPC-C 是一个对 OLTP(联机交易处理)系统进行测试的规范,使用一个商品销售模型对 OLTP 系统进行测试,其中包含五类事务: NewOrder – 新订单的生成

[转帖]使用 TiUP 扩容缩容 TiDB 集群

https://docs.pingcap.com/zh/tidb/stable/scale-tidb-using-tiup TiDB 集群可以在不中断线上服务的情况下进行扩容和缩容。 本文介绍如何使用 TiUP 扩容缩容集群中的 TiDB、TiKV、PD、TiCDC 或者 TiFlash 节点。如未

[转帖]TiUP 常见运维操作

https://docs.pingcap.com/zh/tidb/stable/maintain-tidb-using-tiup 本文介绍了使用 TiUP 运维 TiDB 集群的常见操作,包括查看集群列表、启动集群、查看集群状态、修改配置参数、关闭集群、销毁集群等。 查看集群列表 TiUP clus

[转帖]使用 TiUP 部署 TiDB 集群

https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup TiUP 是 TiDB 4.0 版本引入的集群运维工具,TiUP cluster 是 TiUP 提供的使用 Golang 编写的集群管理组件,通过 TiU