Tagged articles

Lua Scripting

21 articles · Page 1 of 1
Cloud Architecture
Cloud Architecture
Jun 23, 2026 · Databases

Why Redis Handles Millions of Concurrent Requests: Event Loop and Cluster Design

Redis sustains millions of concurrent operations not merely because it is single‑threaded, but thanks to its non‑blocking event‑loop I/O, compact in‑memory data structures, serialized command execution that eliminates lock contention, and robust production features such as replication, sharding, persistence, observability and governance.

ClusterLua ScriptingMemory Optimization
0 likes · 40 min read
Why Redis Handles Millions of Concurrent Requests: Event Loop and Cluster Design
Architect Chen
Architect Chen
Apr 29, 2026 · Backend Development

The Ultimate Redis Guide: In‑Depth Overview of Architecture, Data Types, and Advanced Features

This comprehensive Redis guide covers its role as a core component in large‑scale architectures, explains common use cases, walks through installation and configuration options, details all primary data structures with commands and examples, and explores persistence, transactions, Lua scripting, replication, Sentinel, and cluster modes.

ClusterData StructuresLua Scripting
0 likes · 18 min read
The Ultimate Redis Guide: In‑Depth Overview of Architecture, Data Types, and Advanced Features
LuTiao Programming
LuTiao Programming
Apr 26, 2026 · Databases

Uncovering JRedis: The Truth Behind Redis’s High‑Performance Architecture

The article dissects Redis’s internal architecture—its single‑threaded model, I/O multiplexing, specialized data structures, persistence mechanisms, Lua scripting, memory management, clustering, and monitoring—explaining how each design choice contributes to extreme performance and outlining the trade‑offs and best‑practice scenarios for using or avoiding Redis.

Data StructuresI/O multiplexingJRedis
0 likes · 10 min read
Uncovering JRedis: The Truth Behind Redis’s High‑Performance Architecture
Code Ape Tech Column
Code Ape Tech Column
Oct 20, 2025 · Backend Development

Unlock Redis Performance: Master Lua Scripting in Spring Boot

This tutorial explains how to integrate Lua scripts with Spring Boot and Redis, covering Lua fundamentals, advantages, real‑world use cases, step‑by‑step implementation in Spring Boot, performance gains, error handling, security measures, and best practices for reliable backend development.

Lua ScriptingRedisSpring Boot
0 likes · 21 min read
Unlock Redis Performance: Master Lua Scripting in Spring Boot
Architect's Guide
Architect's Guide
May 6, 2025 · Backend Development

Using Lua Scripts with Spring Boot and Redis for Performance and Atomic Operations

This article explains how to integrate Lua scripts into Spring Boot applications to leverage Redis for atomic operations, performance optimization, and complex data processing, providing detailed Lua fundamentals, practical use‑cases, implementation steps, error handling, security considerations, and best‑practice recommendations.

Lua ScriptingRedisSpring Boot
0 likes · 21 min read
Using Lua Scripts with Spring Boot and Redis for Performance and Atomic Operations
macrozheng
macrozheng
Feb 11, 2025 · Backend Development

Unlock Redis Performance: Using Lua Scripts in Spring Boot Applications

This comprehensive guide explains how to integrate Lua scripts with Spring Boot and Redis, covering Lua fundamentals, performance benefits, practical use cases, step‑by‑step implementation in Java, error handling, security considerations, and best practices for optimizing distributed applications.

Lua ScriptingRedisSpring Boot
0 likes · 21 min read
Unlock Redis Performance: Using Lua Scripts in Spring Boot Applications
Raymond Ops
Raymond Ops
Jan 27, 2025 · Operations

Mastering wrk: Install, Basic Use, and Advanced Lua Scripting for HTTP Load Testing

This guide walks you through installing the wrk load‑testing tool on Unix‑like systems, shows its basic command‑line usage with example output, and explains how to extend tests with Lua scripts for POST requests, dynamic parameters, request delays, authentication, and HTTP pipelining.

HTTP benchmarkingLoad TestingLua Scripting
0 likes · 10 min read
Mastering wrk: Install, Basic Use, and Advanced Lua Scripting for HTTP Load Testing
Top Architect
Top Architect
May 27, 2024 · Backend Development

Implementing High‑Concurrency Stock Deduction with MySQL, Redis, Lua Scripts and Distributed Locks

The article analyzes common inventory‑deduction scenarios, compares three approaches—single‑row MySQL, multi‑row MySQL, and Redis INCRBY—highlights the limitations of database‑based methods under heavy load, and presents a robust Redis‑Lua solution with distributed locking and Java code examples for reliable stock management.

Lua ScriptingRedisjava
0 likes · 12 min read
Implementing High‑Concurrency Stock Deduction with MySQL, Redis, Lua Scripts and Distributed Locks
MaGe Linux Operations
MaGe Linux Operations
Apr 28, 2024 · Operations

Master HTTP Load Testing with wrk: Install, Commands, and Lua Scripting

This guide walks you through installing the wrk load‑testing tool on Unix‑like systems, explains its core command‑line options, shows how to interpret benchmark results, and demonstrates advanced customization using Lua scripts for POST requests, dynamic parameters, authentication, and HTTP pipelining.

HTTPLoad TestingLua Scripting
0 likes · 14 min read
Master HTTP Load Testing with wrk: Install, Commands, and Lua Scripting
macrozheng
macrozheng
Apr 18, 2024 · Backend Development

Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide

This tutorial explains Lua scripting fundamentals, why Lua is ideal for Redis, common use cases, and step‑by‑step integration of Lua scripts into Spring Boot applications—including dependency setup, configuration, code examples, performance benefits, error handling, security considerations, and best‑practice recommendations.

Lua ScriptingSpring Bootbackend development
0 likes · 21 min read
Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide
Alibaba Cloud Native
Alibaba Cloud Native
Aug 29, 2023 · Cloud Native

How Kruise Rollout Uses Lua Scripts for Extensible Gateway Traffic Scheduling

Kruise Rollout introduces a Lua‑script based, extensible traffic routing solution that enables progressive delivery across diverse gateway resources—such as Istio, Kong, and APISIX—by dynamically modifying VirtualService and DestinationRule objects, simplifying configuration, reducing custom code, and supporting automated canary, blue‑green, and A/B testing deployments.

Gateway APIIstioKruise Rollout
0 likes · 14 min read
How Kruise Rollout Uses Lua Scripts for Extensible Gateway Traffic Scheduling
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 16, 2022 · Backend Development

Leveraging ngx_lua for Traffic Grouping in Nginx

This article explains how to use the ngx_lua module in Nginx to assign traffic tags, implement header‑based or domain‑based routing, and integrate with dynamic upstreams for parallel testing, load testing, and gray‑release scenarios, providing code examples and configuration details.

Load BalancingLua Scriptingbackend
0 likes · 9 min read
Leveraging ngx_lua for Traffic Grouping in Nginx
NiuNiu MaTe
NiuNiu MaTe
Sep 8, 2021 · Backend Development

Mastering Distributed Locks with Redis: From Basics to RedLock

This article explains what distributed locks are, outlines their essential properties, walks through step‑by‑step Redis implementations—from simple SETNX to Lua‑based atomic operations—and discusses reliability strategies such as master‑slave failover and RedLock while highlighting the inherent limits of any distributed lock.

Fault ToleranceLua ScriptingRedis
0 likes · 11 min read
Mastering Distributed Locks with Redis: From Basics to RedLock
Architect's Tech Stack
Architect's Tech Stack
Jun 11, 2020 · Backend Development

Understanding Redis Distributed Locks: setnx, RedLock, and Redisson

This article explains how Redis can be used for distributed locking, covering the setnx command, the SET command with NX and PX options, common pitfalls, Lua‑based atomic unlock scripts, the Redisson client, and the RedLock algorithm for achieving reliable locks across multiple nodes.

Lua ScriptingRedisRedisson
0 likes · 10 min read
Understanding Redis Distributed Locks: setnx, RedLock, and Redisson
Meituan Technology Team
Meituan Technology Team
Jul 14, 2017 · Databases

How to Accelerate Database Testing with Sysbench: Insights and Extensions

This article explains how Meituan‑Dianping leverages the open‑source tool Sysbench for repeatable database performance testing, unifies test parameters, optimizes MySQL settings such as slave_parallel_workers, extends functionality via Lua scripts, and reveals the tool’s high‑performance data‑collection techniques.

BenchmarkingLua ScriptingMySQL
0 likes · 13 min read
How to Accelerate Database Testing with Sysbench: Insights and Extensions
dbaplus Community
dbaplus Community
Oct 12, 2016 · Backend Development

How JD’s Flash‑Sale System Handles Millions of Requests with Redis‑Lua

This article explains the design of JD’s flash‑sale (抢购) system, covering its business model, core Redis‑based inventory management, Lua scripting for atomic stock deduction, rate‑limiting, asynchronous logging with JMQ, and fail‑over strategies to ensure high‑concurrency reliability.

Backend ArchitectureFlash SaleLua Scripting
0 likes · 12 min read
How JD’s Flash‑Sale System Handles Millions of Requests with Redis‑Lua
Architect
Architect
Dec 2, 2015 · Databases

Redis vs Memcached: Clarifications and Comparative Analysis

This article critically examines common claims that Memcached is superior for caching by comparing its design, threading, disk I/O, memory efficiency, LRU behavior, smart caching features, persistence, replication, observability, and Lua scripting capabilities against Redis, concluding that the two systems have distinct trade‑offs depending on use case.

Lua ScriptingMemcachedMemory Efficiency
0 likes · 9 min read
Redis vs Memcached: Clarifications and Comparative Analysis