Tengine


Tengine is an open-source web server and reverse proxy software, developed as a feature-enhanced distribution of Nginx. It was originated by Taobao, a subsidiary of Alibaba Group, to address the high-concurrency and high-traffic requirements of large-scale e-commerce platforms.

History

Tengine was first developed internally at Taobao to handle the massive traffic demands of taobao.com, one of the world's largest e-commerce websites. The project was open-sourced on December 2, 2011, initially based on Nginx 1.0.x. Its name derives from "Taobao Engine," later shortened to Tengine.
The core development team includes contributors from Taobao, Alibaba Cloud, Ant Group, and other companies such as Sogou. The project has been maintained as a community-driven effort, with the source code hosted on GitHub under the Alibaba organization.

Name origin and confusion

The name "Tengine" was chosen as a shortened form of "Taobao Engine," inspired by Nginx.

Features

Tengine maintains 100% configuration compatibility with its base Nginx version while adding enterprise-oriented enhancements:Dynamic configuration — Zero-downtime updates for servers, domains, TLS certificates, routing rules, timeouts, HTTPS redirects, CORS, and robots.txt via tools like tengine-ingress.Advanced networking — Full HTTP/3 support, kernel-bypass high-speed UDP forwarding, and CONNECT method for forward proxy scenarios.Load balancing and routingDynamic routing based on HTTP headers, cookies, query parameters, consistent hashing, session persistence, proactive upstream health checks, and dynamic domain resolution.Performance and security — Asynchronous SSL/TLS with hardware acceleration, unbuffered uploads, local DNS caching, enhanced rate limiting with whitelists, system protection under overload, and asynchronous logging.Scripting — Dynamic Lua scripting support for custom extensions.Content optimization — CSS/JS concatenation, whitespace/comment removal, and MIME-type expiration control.Monitoring — Collection of runtime statistics by key.
A Kubernetes-focused variant, Tengine-Ingress, enables dynamic reconfiguration in containerized environments.