Tag

OpenResty

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
May 6, 2025 · Operations

How to Install Nginx+Lua and a Web Application Firewall (WAF) with OpenResty

This guide explains step‑by‑step how to set up a Web Application Firewall by installing LuaJIT, ngx_devel_kit, lua‑nginx‑module, compiling Nginx with Lua support, fixing common errors, and optionally using OpenResty, followed by configuring and testing the ngx_lua_waf module.

BackendInstallationLua
0 likes · 8 min read
How to Install Nginx+Lua and a Web Application Firewall (WAF) with OpenResty
Ctrip Technology
Ctrip Technology
Mar 6, 2025 · Backend Development

Design and Implementation of Ctrip's Soft Load Balancer: Evolving from Nginx Reverse Proxy to an OpenResty‑Based API Gateway

This article details how Ctrip's Soft Load Balancer (SLB) transitioned from a simple Nginx reverse‑proxy to a multi‑datacenter, dynamic routing gateway using OpenResty, Lua scripts, and a three‑layer architecture that eliminates reloads and supports high‑frequency configuration updates.

API GatewayDynamic RoutingLoad Balancing
0 likes · 14 min read
Design and Implementation of Ctrip's Soft Load Balancer: Evolving from Nginx Reverse Proxy to an OpenResty‑Based API Gateway
Code Ape Tech Column
Code Ape Tech Column
Sep 3, 2024 · Backend Development

Comprehensive Guide to API Gateway Design and Implementation

This article provides an in‑depth overview of API gateway concepts, design principles, key features such as routing, load balancing, security, resilience, and compares popular gateway solutions like OpenResty, Kong, Zuul, and Spring Cloud Gateway for microservice architectures.

API GatewayKongOpenResty
0 likes · 26 min read
Comprehensive Guide to API Gateway Design and Implementation
Lobster Programming
Lobster Programming
May 9, 2024 · Backend Development

Detect Hot Items in High‑Concurrency Sales Using OpenResty, Kafka & Elasticsearch

During flash‑sale events like JD or Taobao, a tiny fraction of products generate the majority of traffic, causing server overload; this guide explains how to identify and collect hotspot product data in real time using an OpenResty‑Lua front‑end, Kafka for messaging, and Elasticsearch for storage and analysis.

ElasticsearchHot ItemsKafka
0 likes · 5 min read
Detect Hot Items in High‑Concurrency Sales Using OpenResty, Kafka & Elasticsearch
Lobster Programming
Lobster Programming
May 6, 2024 · Backend Development

Scaling Homepage Carousel to Millions of QPS with OpenResty, Lua, Redis, and MQ

This article explains how to design a high‑QPS hotspot data caching and retrieval system for e‑commerce homepages using OpenResty, Lua, Redis, and a message queue, detailing publishing, reading processes, workflow diagrams, and a complete Lua script that can sustain tens of thousands to millions of concurrent requests.

LuaMessage QueueOpenResty
0 likes · 6 min read
Scaling Homepage Carousel to Millions of QPS with OpenResty, Lua, Redis, and MQ
37 Interactive Technology Team
37 Interactive Technology Team
Apr 15, 2024 · Backend Development

High-Performance Data Collection and Persistence Using OpenResty, Lua, and Kafka

The article describes a high‑throughput, fault‑tolerant data‑collection pipeline built with OpenResty, Lua, and Kafka that writes incoming records to disk using a cross‑worker mutex and cached file handles, rotates files via Nginx reload, and achieves over 13× performance versus typical online methods.

DataIngestionFileIOHighPerformance
0 likes · 7 min read
High-Performance Data Collection and Persistence Using OpenResty, Lua, and Kafka
Sohu Tech Products
Sohu Tech Products
Mar 13, 2024 · Backend Development

OpenResty‑Based Interface Authentication, Traffic Control, and Request Tracing in Production

The article shows how OpenResty’s Lua‑based extensions can implement lightweight, version‑controlled API authentication, dynamic traffic‑shaping via shared‑memory peer status, and selective request tracing with batch‑sent logs to Elasticsearch, enabling secure, highly available services and rich observability without sacrificing Nginx performance in production.

API authenticationLuaNginx
0 likes · 18 min read
OpenResty‑Based Interface Authentication, Traffic Control, and Request Tracing in Production
Architect's Guide
Architect's Guide
Jun 29, 2023 · Backend Development

API Gateway Overview, Design Principles, and Comparison of Popular Implementations

This article explains the role of API gateways in microservice architectures, outlines their four core functions, discusses design priorities such as high performance, availability, and scalability, and compares major open‑source gateway solutions like OpenResty, Kong, Zuul, and Spring Cloud Gateway.

API GatewayKongLoad Balancing
0 likes · 21 min read
API Gateway Overview, Design Principles, and Comparison of Popular Implementations
Refining Core Development Skills
Refining Core Development Skills
Nov 1, 2022 · Cloud Native

From Nginx to Kong: Evolution, Features, and Deployment on Tencent Cloud

This article explains how Nginx evolved into the Kong API gateway through OpenResty, describes Kong’s plugin architecture and micro‑service‑oriented capabilities, and demonstrates setting up and managing Kong with Konga on Tencent Cloud, including monitoring, logging, and high‑availability features.

API GatewayKongNginx
0 likes · 10 min read
From Nginx to Kong: Evolution, Features, and Deployment on Tencent Cloud
macrozheng
macrozheng
Oct 31, 2022 · Backend Development

How to Build a High‑Performance API Gateway with OpenResty and Lua

This article explains the role of API gateways, compares access‑layer and application‑layer designs, and provides a step‑by‑step guide to constructing a dynamic, high‑throughput gateway using OpenResty’s Nginx‑Lua architecture, plugin system, and runtime configuration features.

API GatewayLuaNginx
0 likes · 17 min read
How to Build a High‑Performance API Gateway with OpenResty and Lua
IT Architects Alliance
IT Architects Alliance
Jul 12, 2022 · Backend Development

Understanding API Gateways: Concepts, Design Principles, and Comparison of Popular Solutions

This article explains the fundamentals of API gateways, their role in microservice architectures, key design considerations such as routing, load balancing, security, and elasticity, and compares major open‑source implementations like OpenResty, Kong, Zuul, and Spring Cloud Gateway.

API GatewayKongLoad Balancing
0 likes · 26 min read
Understanding API Gateways: Concepts, Design Principles, and Comparison of Popular Solutions
IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Jun 6, 2022 · Backend Development

Performance Comparison of cjson, rapidjson, and yyjson in OpenResty with a Lua Wrapper

The article benchmarks cjson, rapidjson, and yyjson JSON libraries on a 6‑core OpenResty setup, shows that combining rapidjson's encode with yyjson's decode reduces 500,000 mixed encode/decode operations to 11 seconds, and describes a Lua wrapper that adds schema validation and improves maintainability.

JSONLuaOpenResty
0 likes · 7 min read
Performance Comparison of cjson, rapidjson, and yyjson in OpenResty with a Lua Wrapper
Top Architect
Top Architect
May 27, 2022 · Backend Development

Leveraging OpenResty, Nginx, and Lua for High‑Performance Caching and Dynamic Content Delivery

This article explains how to use OpenResty with Lua to integrate Redis directly into Nginx for cache‑driven request forwarding, data compression, timed updates, single‑process scheduling, and configurable URL caching, thereby improving concurrency, reducing latency, and enhancing backend resilience.

LuaNginxOpenResty
0 likes · 6 min read
Leveraging OpenResty, Nginx, and Lua for High‑Performance Caching and Dynamic Content Delivery
Yiche Technology
Yiche Technology
May 20, 2022 · Cloud Native

APISIX API Gateway: Architecture, Features, Performance Comparison, and Future Outlook

This article introduces the APISIX API gateway, explaining its cloud‑native architecture built on OpenResty and Etcd, the advantages over traditional monolithic service frameworks, detailed feature breakdowns, performance benchmark comparisons with OpenResty, multi‑cluster management practices, usage scenarios, monitoring, logging, and future development directions.

API GatewayAPISIXETCD
0 likes · 12 min read
APISIX API Gateway: Architecture, Features, Performance Comparison, and Future Outlook
Top Architect
Top Architect
Dec 30, 2021 · Backend Development

High‑Performance Caching with OpenResty, Nginx, and Redis Using Lua

This article explains how to leverage OpenResty and Lua scripts to integrate Nginx with Redis for direct caching, compression, timed updates, request forwarding, and configurable URL management, thereby improving concurrency, reducing latency, and enhancing the resilience of backend web services.

LuaNginxOpenResty
0 likes · 7 min read
High‑Performance Caching with OpenResty, Nginx, and Redis Using Lua
TAL Education Technology
TAL Education Technology
Nov 11, 2021 · Backend Development

Optimizing the Qingzhou Business Gateway: Performance Boosts, FFI Integration, and Routing Enhancements

This article details the architecture of the Qingzhou Business Gateway, identifies its granular control, data‑loss, and performance issues, and explains a series of optimizations—including FFI usage, table‑pool reuse, coroutine caching, radixtree routing, and connection‑pool tuning—that raise single‑node QPS to 80 k while preserving functional capabilities.

API GatewayBackendFFI
0 likes · 13 min read
Optimizing the Qingzhou Business Gateway: Performance Boosts, FFI Integration, and Routing Enhancements
Top Architect
Top Architect
Oct 8, 2021 · Backend Development

Implementing OpenResty‑Lua Caching with Nginx, Redis, Compression and Timed Updates

The article explains how a senior architect uses OpenResty and Lua to let Nginx directly access Redis for caching, compresses large responses, schedules periodic updates, and provides a configurable, signature‑verified caching layer to improve web performance and resilience.

LuaNginxOpenResty
0 likes · 6 min read
Implementing OpenResty‑Lua Caching with Nginx, Redis, Compression and Timed Updates
DataFunTalk
DataFunTalk
Sep 26, 2021 · Backend Development

DataVisor Risk‑Control Architecture and the Application of OpenResty

This article explains DataVisor's risk‑control system architecture, outlines the business challenges such as complex logic, massive data, high QPS and low latency, and demonstrates how OpenResty (Nginx + Lua) is used for high‑performance gateways, micro‑service style calls, hot‑loaded scripts, automatic circuit‑breakers, and progressive architectural evolution toward service‑mesh designs.

OpenRestyService Meshbackend architecture
0 likes · 9 min read
DataVisor Risk‑Control Architecture and the Application of OpenResty