Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10595

Explain idempotent producer in max.in.flight.requests.per.connection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • docs
    • None

    Description

      A user asked:

       

      Is the idempotent producer also a total order producer? meaning, despite having max.inflight > 1, it will keep message production ordering? My understanding of this has always been no, but I'd like to confirm...

       

      A contributing factor to the confusion around this scenario is that https://kafka.apache.org/documentation/#max.in.flight.requests.per.connection reads

       

      Note that if this setting is set to be greater than 1 and there are failed sends, there is a risk of message re-ordering due to retries (i.e., if retries are enabled).

       

      Suggestion: it may be clearer if we augmented this description to say that message re-ordering would not happen if enable.idempotent=true 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            yevabyzek Yeva Byzek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: