Tag

Lua scripting

1 views collected around this technical thread.

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.

DatabaseLua scriptingPerformance
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.

JavaLua scriptingRedis
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 benchmarkingLua scriptingload testing
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.

JavaLua scriptingMySQL
0 likes · 12 min read
Implementing High‑Concurrency Stock Deduction with MySQL, Redis, Lua Scripts and Distributed Locks
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.

Backend DevelopmentLua scriptingRedis
0 likes · 21 min read
Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide
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.

Lua scriptingbackendload balancing
0 likes · 9 min read
Leveraging ngx_lua for Traffic Grouping in Nginx
Python Programming Learning Circle
Python Programming Learning Circle
Sep 1, 2021 · Backend Development

Implementing Stock Deduction with MySQL and Redis Using Lua Scripts

This article compares MySQL‑based single and multi‑record stock deduction methods with a Redis‑based approach that uses Lua scripting and distributed locks, providing full Java implementation details and REST examples for high‑concurrency inventory management.

JavaLua scriptingMySQL
0 likes · 10 min read
Implementing Stock Deduction with MySQL and Redis Using Lua Scripts
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.

Backend DevelopmentLua scriptingRedis
0 likes · 10 min read
Understanding Redis Distributed Locks: setnx, RedLock, and Redisson
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