Prompt
What should I use for exactly-once processing in a streaming pipeline?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
For exactly-once processing in a streaming pipeline, the right choice is usually a stream processor with transactional/stateful semantics, not just a broker by itself.
Common choices
- Apache Flink — best-known for true exactly-once stream processing with checkpoints, state management, and transactional sinks.
- Kafka Streams — exactly-once semantics within Kafka-based processing using transactions.
- Spark Structured Streaming — supports exactly-once in many sink/source combinations via micro-batches and checkpointing.
If you’re using Kafka
- Use Kafka transactions plus idempotent producers and consumer offset commits tied to output commits.
- For stateful processing, prefer Kafka Streams or Flink over building it manually.
Important caveat
“Exactly-once” is only end-to-end if:
- your source supports replay,
- your processor has transactional/checkpointed state,
- and your sink is idempotent or transactional.
If you need, I can recommend the best option based on your stack (Kafka, Kinesis, Pub/Sub, etc.).