Tagged articles
message ordering
26 articles · Page 1 of 1
A late‑night logistics alert revealed that out‑of‑order RocketMQ events caused order and shipment statuses to diverge, prompting a root‑cause analysis that uncovered a gift‑giving feature’s simultaneous event publishing and led to two mitigation strategies: delayed sending and ordered messages.
BackendJavaRocketMQ
0 likes · 8 min read


liandkAug 8, 2026 · Backend Development
The article explains how to build a production‑grade MQ architecture by addressing the four critical pitfalls—message loss, duplicate consumption, backlog, and out‑of‑order delivery—through producer ACK retries, persistent storage, manual ACKs, idempotent business logic, dead‑letter queues, consumer scaling, and partitioned ordering.
Dead Letter QueueIdempotencyMQ
0 likes · 7 min read

Even though Kafka guarantees that messages with the same key land in the same partition, the article explains how producer retries, multithreaded consumer processing, and partition expansion can break ordering, and provides concrete techniques such as idempotent producers and single‑threaded consumption to preserve order.
Consumer ConcurrencyKafkaPartition Expansion
0 likes · 10 min read

The article explains that message ordering is a spectrum—from strict global ordering to partition-level and finally business-key ordering—and examines the trade‑offs, pitfalls, and engineering techniques needed to maintain order while scaling to tens of millions of QPS.
KafkaPartitioningbusiness key
0 likes · 24 min read

This article examines why message ordering is critical in distributed systems, explains how partition mechanisms in Kafka, RocketMQ, and RabbitMQ enable ordered consumption, and provides detailed SpringBoot implementations, best‑practice guidelines, partition‑key design principles, concurrency settings, idempotency, and real‑world case studies to ensure reliable sequential processing.
KafkaPartitioningRabbitMQ
0 likes · 28 min read

This article explains the concept of message ordering in distributed systems, details how Kafka stores messages in partitions, compares global and partial ordering, evaluates single‑partition, asynchronous, and multi‑partition solutions—including handling data skew and partition expansion—and provides a practical interview guide.
BackendInterviewKafka
0 likes · 22 min read

This guide explains how Kafka guarantees ordering within a single partition, why global ordering isn’t provided, and offers concrete producer and consumer configurations, key‑based partitioning, troubleshooting tips, verification methods, and multiple strategies for achieving global order when needed.
ConsumerKafkaProducer Configuration
0 likes · 11 min read


mikechenSep 11, 2025 · Backend Development
This article explains why message ordering is critical in scenarios such as financial transactions, e‑commerce order updates, audit logs, and IoT devices, then details Kafka’s core components—topics, partitions, offsets, producers, brokers, and consumer groups—and describes how single‑partition consumption and consistent key hashing ensure ordered processing while balancing throughput.
BackendConsumer GroupKafka
0 likes · 5 min read

The article details how to engineer a Web‑based group chat that supports one million members by selecting WebSocket for real‑time communication, using read‑diffusion storage, a three‑layer architecture with Redis routing and Kafka queues, ensuring ordered, reliable delivery via TCP, ACKs and UUID deduplication, calculating unread counts with Redis ZSETs, and handling massive traffic through rate‑limiting, protobuf compression and message chunking.
IM SystemWebSocketdistributed architecture
0 likes · 21 min read

This article examines the causes of message queue disorder in distributed systems and presents practical solutions such as ordered messaging, pre‑consumption checks, state machines, and monitoring to improve system stability and data consistency.
KafkaMessage QueueRocketMQ
0 likes · 9 min read

This article explains the fundamentals of distributed systems, introduces Apache Kafka's architecture and components, discusses how Kafka ensures ordered message consumption, and provides Java consumer configuration tips to maintain message order, offering practical guidance for backend developers working with streaming data.
JavaKafkabig data
0 likes · 11 min read

This article explains the fundamentals of distributed systems, introduces Apache Kafka’s architecture and core components, describes how Kafka ensures message ordering within partitions, and provides practical Java consumer configurations and techniques to guarantee ordered consumption of messages.
Javadistributed systemsmessage ordering
0 likes · 10 min read

This article explores the key challenges of building a large‑scale instant‑messaging service—including message reliability, ordering, read‑sync, data security, avalanche effects, and weak‑network handling—and presents practical architectural and algorithmic solutions for each problem.
Message ReliabilityWeak Networkbackend architecture
0 likes · 21 min read

This article compares RabbitMQ and Apache Kafka across architecture, message ordering, routing, timing, retention, fault handling, scalability, and consumer complexity, and provides guidance on which platform suits specific use‑cases such as flexible routing, strict ordering, long‑term retention, or high throughput.
KafkaMessage QueueRabbitMQ
0 likes · 19 min read

This article dissects the end‑to‑end technical workflow of sending a customer‑service IM message, covering reliability, real‑time delivery, ordering, idempotency, performance bottlenecks, async handling, requestAnimationFrame, protobuf migration, and user‑experience optimizations, while sharing concrete metrics and real‑world solutions.
IMProtobuffrontend
0 likes · 24 min read

This article introduces the fundamentals of distributed systems, provides an overview of Apache Kafka’s architecture and core components, explains how Kafka ensures message ordering within partitions, and outlines Java‑based strategies to guarantee ordered consumption, including single‑partition consumption, partition assignment, and key‑based partitioning.
JavaKafkabig data
0 likes · 10 min read

This article explains why message queues are used to decouple services, enable asynchronous processing, smooth traffic spikes, and improve performance, while also detailing the new challenges they introduce such as reduced availability, increased complexity, duplicate consumption, data consistency, message loss, ordering, and backlog, along with practical solutions for each issue.
Asynchronous ProcessingData ConsistencyDecoupling
0 likes · 18 min read

This article compares Kafka and RabbitMQ across six real‑world scenarios—message ordering, routing, timeout handling, persistence, error handling, and throughput—to help engineers decide which message queue best fits their system requirements.
KafkaMessage QueueRabbitMQ
0 likes · 12 min read

Meituan’s Pike 2.0 replaces the Shark‑dependent Pike 1.0 with a four‑layer, TunnelKit‑based bidirectional messaging service that offers shared or independent channels, heartbeat‑driven keep‑alive, aggregated high‑QPS delivery, ordering guarantees, extensive monitoring, and plans for IoT and QUIC enhancements, achieving over 5 billion daily messages with sub‑220 ms latency.
MeituanMessage DeliveryPike 2.0
0 likes · 28 min read

Kafka partitions are the fundamental storage units that enable topics to scale horizontally, maintain message order within each partition, provide fault‑tolerance through replication, and support parallel consumption, with various write strategies such as key‑based, round‑robin, and custom rules.
Kafkaconsumer groupsfault tolerance
0 likes · 9 min read

This article shares a two‑year journey of using Kafka in a high‑traffic restaurant ordering system, covering why message order matters, how network glitches and partition routing cause failures, and the practical retry, partition‑balancing, and database strategies that finally eliminated backlog and duplication issues.
KafkaPartition Balancingbackend development
0 likes · 19 min read

This article reviews typical Kafka interview topics, explaining the implementation of delay queues with hierarchical time wheels, how idempotence is achieved via producer IDs, the meanings of ISR, OSR, AR, HW, LEO, LSO, strategies for guaranteeing message order, and practical solutions for handling duplicate consumption.
ISRIdempotencedelay queue
0 likes · 9 min read

This article analyzes why instant‑messaging (IM) messages can arrive out of order due to time discrepancies, network behavior, and multithreading, and proposes a comprehensive design using global sequence numbers, channel‑aware routing, client‑side caching, and ACK‑based flow control to guarantee ordered delivery.
BackendIMSequence Number
0 likes · 9 min read

This article explains how RocketMQ, a high‑throughput distributed messaging middleware, solves the classic problems of message ordering, duplicate delivery, and transactional consistency, while detailing its load‑balancing producer, storage architecture, subscription models, and practical best‑practice recommendations.
Message DuplicationTransaction Messagesbackend development
0 likes · 23 min read

This article shares practical patterns and built‑in mechanisms for dealing with duplicate messages, message ordering, concurrent updates, asynchronous acknowledgments, and batch processing in a large‑scale, message‑driven architecture, illustrated with QMQ examples from Qunar's platform.
Duplicate Message HandlingMessage Queuebackend development
0 likes · 16 min read

This article provides a comprehensive overview of RocketMQ, covering its design for high‑throughput distributed messaging, solutions to ordering and duplicate‑message challenges, transaction messaging mechanisms, producer/consumer workflows, storage architecture, subscription models, additional features, and practical best‑practice recommendations.
JavaRocketMQTransaction Messaging
0 likes · 25 min read
