Analyzing the Internal Implementation of Redis Distributed Locks in Go
Source Code
Repository: https://github.com/bsm/redislock
Core Logic Implementation
The library relies heavily on Lua scripts to ensure atomicity when interacting with Redis. Below is the rewritten logic of the scripts used.
Acquiring a Lock
The following script attempts to set a lock. If the lock is already held but by the same owner (determine ...
Posted on Tue, 25 Aug 2026 16:55:07 +0000 by binarymonkey
Building a Microservices E-Commerce Platform with Spring Cloud and Alibaba
Project Architecture Overview
The system adopts a microservices architecture, decomposing business capabilities into independently deployable services communicating over lightweight HTTP APIs. Each service handles its own data storage and can be developed with dedicated technology stacks. The architecture diagram splits the monolith into servic ...
Posted on Thu, 30 Jul 2026 16:55:42 +0000 by adamlacombe
Redis-Based Distributed Lock and Rate Limiting in Spring Boot Applications
Overview
This article describes a clean approach to implementing distributed locking and rate limiting using Redis in Spring Boot applications. The solution leverages Redis atomic operations for thread-safe state management across multiple service instances.
Why Redis?
Redis provides atomic operations that guarantee complete execution or no exe ...
Posted on Wed, 13 May 2026 10:33:40 +0000 by SQL Maestro