Tagged articles
418 articles
Page 5 of 5
dbaplus Community
dbaplus Community
Jan 4, 2018 · Operations

Understanding ZooKeeper Architecture and FastLeaderElection: A Deep Dive

This article explains ZooKeeper's distributed coordination architecture, the ZAB consensus protocol, server roles, write and read workflows, FastLeaderElection mechanics, configurable election algorithms, and how ZooKeeper can be used to implement reliable distributed locks and leader election.

Distributed CoordinationFastLeaderElectionZAB
0 likes · 26 min read
Understanding ZooKeeper Architecture and FastLeaderElection: A Deep Dive
Alibaba Cloud Infrastructure
Alibaba Cloud Infrastructure
Nov 29, 2017 · Databases

Case Study: Resolving a One‑Cent Discrepancy Caused by Distributed‑Lock Timeout and Concurrency Issues in Alibaba’s Financial System

This article analyzes a real Alibaba internal financial‑system incident where a one‑cent accounting error arose from concurrent database writes after a distributed‑lock timeout, details the root‑cause investigation, and presents two remediation strategies—adjusting timeout settings and strengthening idempotent controls—to prevent similar issues.

AlibabaIdempotencyconcurrency
0 likes · 7 min read
Case Study: Resolving a One‑Cent Discrepancy Caused by Distributed‑Lock Timeout and Concurrency Issues in Alibaba’s Financial System
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 27, 2017 · Backend Development

How a 0.01‑Yuan Mistake Exposed Distributed Lock Flaws in Alibaba’s Backend

A tiny 0.01‑yuan discrepancy in an Alibaba product revealed duplicate settlement records, exposing a distributed‑lock timeout and concurrency issue that led to double commits, and the article walks through the root‑cause analysis, reverse engineering of the process, and two remediation strategies focusing on timeout adjustments and idempotency controls.

AlibabaIdempotencyconcurrency
0 likes · 8 min read
How a 0.01‑Yuan Mistake Exposed Distributed Lock Flaws in Alibaba’s Backend
21CTO
21CTO
Nov 8, 2017 · Backend Development

Mastering Redis Distributed Locks: From Basics to Robust Java Implementations

This article explains how to build reliable distributed locks with Redis, covering essential commands, common pitfalls, improvements using GETSET, Lua scripting for atomicity, and complete Java code examples that address deadlock and unlock vulnerabilities.

JavaLua Scriptdistributed-lock
0 likes · 15 min read
Mastering Redis Distributed Locks: From Basics to Robust Java Implementations
Java Backend Technology
Java Backend Technology
Sep 18, 2017 · Fundamentals

Mastering ZooKeeper: Core Concepts, Architecture, and Real-World Use Cases

This article provides a comprehensive overview of ZooKeeper, covering its purpose, design goals, architecture, key features, data flow, components, and common application scenarios such as service naming, configuration management, cluster coordination, distributed locks, and queues.

Configuration ManagementCoordination Servicedistributed-lock
0 likes · 12 min read
Mastering ZooKeeper: Core Concepts, Architecture, and Real-World Use Cases
Dada Group Technology
Dada Group Technology
Aug 25, 2017 · Backend Development

Designing a High‑Availability Inventory System: Stock Pre‑allocation, Idempotency, Concurrency Control, and Rollback Strategies

The article describes how JD Daojia's inventory system serves millions of stores by using health‑monitoring platforms, pre‑allocation policies, idempotent order processing, distributed locks, and rollback mechanisms to ensure stability, prevent overselling, and handle high‑concurrency scenarios such as flash‑sales.

Idempotencydistributed-lockinventory
0 likes · 11 min read
Designing a High‑Availability Inventory System: Stock Pre‑allocation, Idempotency, Concurrency Control, and Rollback Strategies
Qunar Tech Salon
Qunar Tech Salon
Jun 28, 2017 · Backend Development

Understanding Curator's InterProcessMutex Distributed Lock in Java

This article explains how to replace Redis‑based lock with Curator's InterProcessMutex, detailing its re‑entrant design, node creation, lock acquisition logic, waiting mechanisms, and release process, while highlighting advantages over traditional Thread.sleep approaches in multithreaded resource access.

InterProcessMutexJavaZooKeeper
0 likes · 8 min read
Understanding Curator's InterProcessMutex Distributed Lock in Java
Tencent Architect
Tencent Architect
Apr 13, 2017 · Databases

Overview of Tencent's TXSQL: Custom MySQL Kernel Enhancements, Performance Optimizations, and Feature Additions

The article provides a comprehensive overview of TXSQL, Tencent's heavily customized MySQL kernel, detailing its motivations, version choices, performance improvements such as read‑view and redo‑log optimizations, added functionalities like multi‑mode operation and distributed locks, stability testing, financial‑grade features, benchmark results against official MySQL releases, upcoming support for MySQL 5.7, and future development directions.

Database EngineTXSQLcloud database
0 likes · 22 min read
Overview of Tencent's TXSQL: Custom MySQL Kernel Enhancements, Performance Optimizations, and Feature Additions
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 9, 2017 · Backend Development

Mastering Distributed Locks and Idempotency for High‑Concurrency Systems

This article explores the challenges of mutual exclusion and idempotency in distributed environments, explains the underlying principles of locks in multi‑threaded and multi‑process contexts, and presents practical implementations using Zookeeper, Redis, Tair, and the Cerberus and GTIS frameworks to ensure reliable, scalable operations.

Distributed SystemsIdempotencyZooKeeper
0 likes · 35 min read
Mastering Distributed Locks and Idempotency for High‑Concurrency Systems
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 7, 2017 · Backend Development

Ensuring Idempotency in High‑Concurrency Systems: Strategies and Best Practices

To prevent duplicate operations such as repeated inserts, updates, or message sends in high‑traffic applications, this article explains the concept of idempotency and outlines practical techniques—including read‑only APIs, MVCC with optimistic locking, deduplication tables, distributed locks, safe deletes, unique indexes, UUID‑based request tracking, and state‑machine safeguards.

BackendIdempotencydatabase
0 likes · 5 min read
Ensuring Idempotency in High‑Concurrency Systems: Strategies and Best Practices
dbaplus Community
dbaplus Community
Mar 9, 2017 · Databases

Why Redis Redlock May Not Be Safe: A Deep Dive into the Redlock Debate

An in‑depth review of the heated debate between Redis creator antirez and distributed‑systems expert Martin Kleppmann over the safety of Redis’s Redlock algorithm, covering single‑node lock pitfalls, failover issues, timing assumptions, fencing tokens, and practical recommendations for when to use Redlock versus simpler locks.

ConsistencyRedlockdistributed-lock
0 likes · 25 min read
Why Redis Redlock May Not Be Safe: A Deep Dive into the Redlock Debate
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 24, 2016 · Fundamentals

Why Redlock May Not Be the Ultimate Distributed Lock (And What to Use Instead)

This article reviews the evolution of distributed locking—from simple MySQL table locks to Redis cache locks and the Redlock algorithm—examines expert criticisms of Redlock’s correctness, presents the Redis author’s rebuttal, and ultimately recommends Zookeeper as a more reliable solution for high‑availability distributed locks.

CacheConsensusRedlock
0 likes · 22 min read
Why Redlock May Not Be the Ultimate Distributed Lock (And What to Use Instead)
Meituan Technology Team
Meituan Technology Team
Oct 1, 2016 · Backend Development

Analysis of Mutual Exclusion and Idempotency Issues in Distributed Systems and Their Solutions

The article examines how distributed systems face mutual‑exclusion and idempotency challenges, explains traditional thread and process synchronization, then details distributed‑lock techniques (e.g., Zookeeper, Redis, Tair, Cerberus) and global‑ID‑based idempotent services, emphasizing the importance of external storage, fault‑tolerance, and proper lock granularity for reliable high‑throughput applications.

IdempotencyJava concurrencyZooKeeper
0 likes · 36 min read
Analysis of Mutual Exclusion and Idempotency Issues in Distributed Systems and Their Solutions
21CTO
21CTO
Jan 5, 2016 · Backend Development

Unlocking Alibaba’s Alicom-Frame: DAO, Caching, Distributed Locks & More

This article introduces the Alicom‑Frame library from Alibaba’s Telecom Billing Refactor project, detailing its modular utilities such as flexible DAO with sharding support, method‑level caching, Diamond‑based configuration tools, distributed locks, and various helper classes, illustrating how they simplify backend development.

DiamondJavadao
0 likes · 11 min read
Unlocking Alibaba’s Alicom-Frame: DAO, Caching, Distributed Locks & More
Architect
Architect
Dec 11, 2015 · Backend Development

Implementing Distributed Locks with Redis: The RedLock Algorithm

This article explains how to build reliable distributed locks using Redis, introduces the official RedLock algorithm, discusses safety properties, compares it with simple failover approaches, and provides implementation details, performance considerations, and lock‑extension techniques.

Redlockconcurrencydistributed-lock
0 likes · 16 min read
Implementing Distributed Locks with Redis: The RedLock Algorithm