Tagged articles
21 articles
Page 1 of 1
dbaplus Community
dbaplus Community
Mar 5, 2026 · Backend Development

How to Ensure Message Order in Kafka: From Basics to Advanced Solutions

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.

BackendDistributed SystemsKafka
0 likes · 22 min read
How to Ensure Message Order in Kafka: From Basics to Advanced Solutions
mikechen
mikechen
Sep 11, 2025 · Backend Development

How Does Kafka Guarantee Message Order? Key Mechanisms Explained

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.

BackendKafkaMessage Ordering
0 likes · 5 min read
How Does Kafka Guarantee Message Order? Key Mechanisms Explained
vivo Internet Technology
vivo Internet Technology
Feb 26, 2025 · Backend Development

Building a Million-User Group Chat System: Server-Side Architecture and Implementation

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 SystemMessage OrderingWebSocket
0 likes · 21 min read
Building a Million-User Group Chat System: Server-Side Architecture and Implementation
JD Cloud Developers
JD Cloud Developers
Dec 11, 2024 · Operations

How to Prevent Message Queue Disorder in Distributed Systems

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 OrderingMessage Queue
0 likes · 9 min read
How to Prevent Message Queue Disorder in Distributed Systems
Top Architect
Top Architect
Nov 20, 2024 · Big Data

Understanding Distributed Systems and Kafka: Architecture, Message Ordering, and Java Consumer Practices

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.

Big DataDistributed SystemsJava
0 likes · 11 min read
Understanding Distributed Systems and Kafka: Architecture, Message Ordering, and Java Consumer Practices
Architecture & Thinking
Architecture & Thinking
Apr 21, 2024 · Backend Development

How to Ensure Reliability, Ordering, and Security in Billion‑User IM Systems

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.

Backend ArchitectureInstant MessagingMessage Ordering
0 likes · 21 min read
How to Ensure Reliability, Ordering, and Security in Billion‑User IM Systems
Architect's Guide
Architect's Guide
Mar 2, 2024 · Fundamentals

RabbitMQ vs Kafka: Core Differences and When to Use Each

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 OrderingMessage Queue
0 likes · 19 min read
RabbitMQ vs Kafka: Core Differences and When to Use Each
Architect
Architect
Dec 8, 2023 · Frontend Development

How to Build a Reliable, Low‑Latency IM Chat for Customer Service – Front‑End Techniques Revealed

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.

IMMessage OrderingProtobuf
0 likes · 24 min read
How to Build a Reliable, Low‑Latency IM Chat for Customer Service – Front‑End Techniques Revealed
Top Architect
Top Architect
Nov 2, 2023 · Big Data

Understanding Distributed Systems and Kafka: Concepts, Architecture, and Ensuring Ordered Message Consumption

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.

Big DataJavaKafka
0 likes · 10 min read
Understanding Distributed Systems and Kafka: Concepts, Architecture, and Ensuring Ordered Message Consumption
Java High-Performance Architecture
Java High-Performance Architecture
Dec 29, 2022 · Backend Development

Why Message Queues Are Essential: Decoupling, Asynchrony, and Pitfalls Explained

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.

Backlog ManagementData ConsistencyDecoupling
0 likes · 18 min read
Why Message Queues Are Essential: Decoupling, Asynchrony, and Pitfalls Explained
dbaplus Community
dbaplus Community
Mar 27, 2022 · Backend Development

When to Choose Kafka Over RabbitMQ: A Six‑Scenario Comparison

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.

Backend ArchitectureKafkaMessage Ordering
0 likes · 12 min read
When to Choose Kafka Over RabbitMQ: A Six‑Scenario Comparison
Meituan Technology Team
Meituan Technology Team
Jul 22, 2021 · Backend Development

Pike 2.0: Meituan's Bidirectional Message Delivery Service Architecture and Features

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.

Backend ArchitectureMeituanMessage Delivery
0 likes · 28 min read
Pike 2.0: Meituan's Bidirectional Message Delivery Service Architecture and Features
dbaplus Community
dbaplus Community
Apr 1, 2021 · Backend Development

Avoid Kafka Pitfalls: Ensuring Message Order, Handling Retries, and Preventing Backlog

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.

Backend DevelopmentKafkaMessage Ordering
0 likes · 19 min read
Avoid Kafka Pitfalls: Ensuring Message Order, Handling Retries, and Preventing Backlog
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 4, 2020 · Big Data

Common Kafka Interview Questions: Delay Queues, Idempotence, ISR/AR, HW/LEO/LSO, Message Ordering, and Duplicate Consumption

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.

Duplicate ConsumptionISRIdempotence
0 likes · 9 min read
Common Kafka Interview Questions: Delay Queues, Idempotence, ISR/AR, HW/LEO/LSO, Message Ordering, and Duplicate Consumption
High Availability Architecture
High Availability Architecture
Oct 22, 2019 · Backend Development

Ensuring In-Order Delivery of IM Messages: Causes and Solutions

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.

BackendDistributed SystemsIM
0 likes · 9 min read
Ensuring In-Order Delivery of IM Messages: Causes and Solutions
dbaplus Community
dbaplus Community
Mar 20, 2017 · Backend Development

How RocketMQ Tackles Message Ordering, Duplication, and Transaction Challenges

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.

Backend DevelopmentMessage DuplicationMessage Ordering
0 likes · 23 min read
How RocketMQ Tackles Message Ordering, Duplication, and Transaction Challenges
Ctrip Technology
Ctrip Technology
Jan 25, 2017 · Backend Development

Handling Duplicate Messages, Ordering, Concurrency, and Batch Processing in Message‑Driven Systems

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.

Backend DevelopmentBatch ProcessingConcurrency Control
0 likes · 16 min read
Handling Duplicate Messages, Ordering, Concurrency, and Batch Processing in Message‑Driven Systems
Architecture Digest
Architecture Digest
Aug 3, 2016 · Backend Development

Understanding RocketMQ: Key Features, Implementation Principles, and Best Practices

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.

JavaMessage OrderingRocketMQ
0 likes · 25 min read
Understanding RocketMQ: Key Features, Implementation Principles, and Best Practices