Configure Kafka Streams exactly-once processing with processing.guarantee=exactly_once_v2

domain: kafka.apache.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Set processing.guarantee=exactly_once_v2 in your StreamsConfig properties (EOS v2 is available from Kafka brokers 2.5+ and is preferred over the legacy exactly_once setting).
  2. Ensure the Kafka broker cluster has sufficient transactional support; EOS v2 requires brokers to handle the KIP-447 group protocol.
  3. Do not manually produce to output topics from within processor APIs while EOS is enabled; let Kafka Streams manage the transactional producer.
  4. Set num.stream.threads carefully — each thread uses a separate transactional producer, and a high thread count increases broker-side transaction coordinator load.
  5. Test failover scenarios by killing an instance mid-processing and verifying that no duplicate output records appear in downstream topics.
  6. Monitor transaction abort metrics (kafka.producer.transaction-aborts-total) to detect unexpected abort spikes.

Known gotchas

Related routes

Configure Kafka exactly-once delivery using EOS v2 transactions for producer-to-consumer pipelines
kafka.apache.org · 6 steps · unrated
Configure Kafka exactly-once semantics (EOS) for a transactional producer and idempotent pipeline
kafka · 6 steps · unrated
Implement Kafka exactly-once semantics using transactions
kafka.apache.org · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans