Tagged articles
Distributed Consistency
13 articles · Page 1 of 1
This article details the architecture of the Dayu AI Model Gateway, covering its three-plane design (control, data, accounting), streaming protocol conversion across OpenAI, Anthropic, and Gemini formats, fault-tolerant scheduling with retry budgets, granular observability metrics, immutable price snapshots for accurate billing, and resource quota management with distributed consistency guarantees.
AI Model GatewayBillingDistributed Consistency
0 likes · 26 min read

The article explains how RocketMQ’s transactional message mechanism guarantees consistency between order creation and inventory deduction by using half‑messages, a local transaction callback, a second‑phase confirmation, and broker‑side timeout checks, while highlighting common pitfalls and best‑practice recommendations.
Distributed ConsistencyMessage QueueRocketMQ
0 likes · 9 min read

Redis Cluster enforces a single database (DB 0) because its slot‑based sharding model relies on a global 16,384‑slot map, and supporting multiple databases would break slot consistency, migration, and scalability, so developers must use key prefixes, separate instances, or multiple clusters to achieve logical isolation.
DB0Distributed ConsistencyKey Prefix
0 likes · 7 min read

This article explains how SpringBoot handles transactional messaging to achieve distributed data consistency, covering the concept of transaction messages, CAP theory, final consistency, and three practical implementations using a local message table, Kafka transactions, and RocketMQ, plus idempotency and compensation strategies.
CAP theoremDistributed ConsistencyIdempotency
0 likes · 17 min read

This comprehensive guide walks you through building a production‑grade Go order service—from understanding the high‑concurrency business scenario and Go’s runtime advantages, to designing microservice architecture, handling idempotency, outbox patterns, observability, Kubernetes deployment, incident response, and testing strategies.
Distributed Consistencycloud-nativemicroservices
0 likes · 54 min read

This article explores how to build a reliable, scalable transaction module for e‑commerce and finance, covering business requirement analysis, domain modeling, state‑machine design, layered microservice architecture, order creation and payment flows, idempotency, anti‑oversell mechanisms, performance tuning, monitoring, and evolution strategies.
BackendDistributed ConsistencyIdempotency
0 likes · 10 min read

The article compares four user‑level rate‑limiting approaches—Sentinel hotspot parameters, Sentinel ordinary flow control with cluster mode, Redis ZSet + Lua scripts, and Guava RateLimiter—explaining why Sentinel is unsuitable for long‑window low‑frequency limits and why Redis + Lua is the optimal solution for high‑traffic e‑commerce scenarios.
Distributed ConsistencyLong WindowLua
0 likes · 26 min read

This article breaks down the core concerns interviewers have for senior Go engineers—system stability, middleware pitfalls, Redis risk isolation, message‑queue buffering, distributed consistency, configuration management, ID design, and avalanche prevention—offering concrete insights and practical interview answers.
Distributed ConsistencyGoInterview Preparation
0 likes · 11 min read

This article examines the limitations of the CAP theorem in modern microservice architectures, introduces the BASE model for eventual consistency, and evaluates practical solutions such as write RPC retries, synchronous and transactional messaging, and local message tables to achieve reliable data consistency across distributed services.
BASE theoryCAP theoremDistributed Consistency
0 likes · 11 min read

To address consistency problems in distributed systems, the article explains CAP and BASE trade‑offs, shows how transactional RPC and messaging—using retries, RocketMQ two‑phase commits, Spring @TransactionalEventListener, or a local message log—can ensure atomic updates, and compares their reliability, latency, and performance impacts.
BASE theoryCAP theoremDistributed Consistency
0 likes · 12 min read


ITPUBSep 27, 2022 · Fundamentals
This article explains the fundamentals of distributed consistency, covering consistency levels, ACID and CAP principles, BASE theory, and practical protocols such as 2PC, 3PC, and TCC, while also discussing real‑world patterns like cache consistency and reliable messaging.
2PC3PCACID
0 likes · 20 min read

This article provides a detailed examination of Elasticsearch's distributed consistency mechanisms, covering the shard write path, the PacificA replication algorithm, the role of SequenceNumber and Checkpoint, and a comparison of ES's implementation with the original algorithm, based on version 6.2.
BackendDistributed ConsistencyElasticsearch
0 likes · 23 min read

While message queues can decouple services and smooth traffic spikes, they also introduce availability risks, stability problems like message loss or duplication, and distributed consistency challenges that require careful high‑availability design and reliable transaction strategies.
Distributed ConsistencyMQMessage Queue
0 likes · 6 min read
