Tagged articles
14 articles
Page 1 of 1
Java Captain
Java Captain
May 23, 2025 · Backend Development

Common Causes of Kafka Message Loss and Mitigation Strategies

This article examines the typical reasons Kafka messages are lost across producers, brokers, and consumers, and provides detailed configuration recommendations and best‑practice solutions to significantly reduce the risk of data loss in distributed streaming systems.

BrokerConfigurationConsumer
0 likes · 15 min read
Common Causes of Kafka Message Loss and Mitigation Strategies
ITPUB
ITPUB
Nov 17, 2024 · Backend Development

Why Spring Event Can Lose Messages During Startup and How to Avoid It

A deep dive into Spring Event's delayed listener registration reveals how messages can be lost during the brief window between Kafka consumer initialization and EventListener setup, explaining the root cause, illustrating the startup order, and recommending safer alternatives for reliable message handling.

EventJavaMessage Loss
0 likes · 8 min read
Why Spring Event Can Lose Messages During Startup and How to Avoid It
Java Tech Enthusiast
Java Tech Enthusiast
Apr 30, 2024 · Backend Development

How to Prevent Message Loss and Duplication in Message Queues

This article examines why messages can be lost or duplicated in typical queue systems, explains the failure points from producer to broker to consumer, and provides practical techniques such as synchronous flushing, broker clustering, database unique constraints, and Redis deduplication to achieve reliable, idempotent processing.

BackendIdempotencyKafka
0 likes · 7 min read
How to Prevent Message Loss and Duplication in Message Queues
dbaplus Community
dbaplus Community
Mar 15, 2023 · Backend Development

How to Prevent Message Loss in Kafka: Practical Tips and Configurations

This guide explains why message queues are introduced for decoupling and traffic control, identifies three key areas where message loss can occur—in producers, brokers, and consumers—and provides concrete Kafka configurations, monitoring practices, and operational steps to ensure reliable, loss‑free message delivery.

Consumer MonitoringKafkaMessage Loss
0 likes · 12 min read
How to Prevent Message Loss in Kafka: Practical Tips and Configurations
Top Architect
Top Architect
Sep 1, 2022 · Backend Development

Ensuring Zero Message Loss in MQ Systems – Interview Guide and Best Practices

This article explains how to guarantee that messages are never lost when using MQ middleware such as Kafka, RabbitMQ or RocketMQ, covering the three lifecycle stages, detection methods, design‑for‑failure principles, idempotent consumption, handling message backlog, and practical interview answers.

Distributed SystemsInterview PreparationMQ
0 likes · 13 min read
Ensuring Zero Message Loss in MQ Systems – Interview Guide and Best Practices
JavaEdge
JavaEdge
Apr 6, 2022 · Big Data

When Does Kafka Lose Data? Proven Strategies to Prevent Message Loss

This article explains Kafka's message delivery semantics, identifies the exact scenarios where data can be lost in producer, broker, and consumer components, and provides concrete configuration and coding practices to ensure reliable, at‑least‑once or exactly‑once delivery in production environments.

BrokerConsumerData Reliability
0 likes · 18 min read
When Does Kafka Lose Data? Proven Strategies to Prevent Message Loss
Top Architect
Top Architect
Oct 24, 2021 · Backend Development

Preventing Message Loss in RocketMQ: Scenarios, Solutions, and Trade‑offs

The article analyzes three typical RocketMQ message‑loss scenarios—network glitches during production, incomplete disk persistence, and premature consumer acknowledgments—and presents concrete solutions such as transactional messaging, synchronous flush with replication, and proper consumer‑ack handling, while discussing their performance impact.

JavaMessage LossRocketMQ
0 likes · 7 min read
Preventing Message Loss in RocketMQ: Scenarios, Solutions, and Trade‑offs
Java Interview Crash Guide
Java Interview Crash Guide
Aug 24, 2021 · Backend Development

How to Ensure Zero Message Loss in RocketMQ: Scenarios and Solutions

This article examines the common situations where messages can be lost in RocketMQ—such as network glitches during production, asynchronous disk flushing, and premature consumer acknowledgments—and presents practical strategies like transactional messaging, synchronous flushing, broker replication, and proper consumer listener handling to achieve zero loss.

Message LossTransactional MessagingZero Loss
0 likes · 8 min read
How to Ensure Zero Message Loss in RocketMQ: Scenarios and Solutions
Java Interview Crash Guide
Java Interview Crash Guide
Jun 21, 2021 · Backend Development

How to Prevent Message Loss, Duplicates, and Backlog in Distributed Queues

This article explains practical techniques for detecting lost messages, ensuring reliable delivery across production, storage, and consumption stages, handling duplicate deliveries with idempotent designs, managing message backlogs through performance tuning, and using transactional messages to achieve distributed transaction consistency.

IdempotencyKafkaMessage Loss
0 likes · 23 min read
How to Prevent Message Loss, Duplicates, and Backlog in Distributed Queues
Code Ape Tech Column
Code Ape Tech Column
Feb 26, 2021 · Backend Development

Why Kafka Messages Get Lost and How to Prevent It

This article explains the three places where Kafka can lose messages—Broker, Producer, and Consumer—detailing the underlying mechanisms, the impact of flush and ack settings, and practical configuration and coding strategies to minimize data loss.

Ack SettingsBrokerConfiguration
0 likes · 15 min read
Why Kafka Messages Get Lost and How to Prevent It
Programmer DD
Programmer DD
Dec 17, 2020 · Big Data

Why Kafka Messages Get Lost and How to Prevent It

This article explains the three places where Kafka can lose messages—broker, producer, and consumer—detailing the underlying causes such as page cache flushing, acknowledgment settings, buffer handling, and offset commits, and provides practical configuration and design strategies to minimize data loss and improve reliability.

BrokerConsumerMessage Loss
0 likes · 13 min read
Why Kafka Messages Get Lost and How to Prevent It
Architecture Digest
Architecture Digest
Jun 24, 2020 · Big Data

Preventing Message Loss and Achieving Exactly‑Once Semantics in Kafka

This article explains common scenarios where Kafka messages can be lost on the producer, consumer, or broker side, and provides practical configurations—including callbacks, acks, retries, manual offset commits, idempotent and transactional producers—to ensure reliable delivery and exactly‑once processing.

Exactly-OnceIdempotenceMessage Loss
0 likes · 10 min read
Preventing Message Loss and Achieving Exactly‑Once Semantics in Kafka