With retries enabled and more than one request in flight, a failed batch is resent behind batches that already succeeded. The records arrive in the log in an order the producer never sent - and duplicates too.
Run this yourself in the Online Java Compiler, spin up a live REST API in the API Sandbox, or practise with Java interview questions.
Published 2026-08-25