Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Navigating Kafka’s auto-commit: avoiding duplication and data loss

Blog post from New Relic

Post Details
Company
Date Published
Author
Evan Nelson
Word Count
1,299
Company Posts That Month
10
Language
English
Hacker News Points
-
Post removed?
No
Summary

Kafka's auto-commit mechanism can lead to data loss and duplication if a consumer experiences an out of memory (OOM) kill or other hard shutdown, as it may reprocess messages that were received but not yet committed. This occurs because the consumer has no knowledge of what happens to the message after it is pulled in, and auto-commits can occur at intervals controlled by `auto.commit.interval.ms`, which can lead to hundreds of messages being lost or duplicated. To mitigate this risk, users can consider using streaming solutions like Flink or Kafka Streams that offer exactly-once processing, implementing their own transactional semantics in consumers, or accepting the risk and building reliable services with stable alerts for service shutdowns.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 2 245 81 38 -32%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.