"We turned on exactly-once, so why did the customer get two emails?" That question reached our team after a payments pipeline was migrated to Kafka transactions. The pipeline did exactly what Kafka promises: each input record produced exactly one output record in the downstream topic, even across crashes. The email was sent by an HTTP call in the middle of the processing loop, and no Kafka setting can take back an HTTP call.This post explains what Kafka's exactly-once semantics (EOS) actually gu...