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

New Kafka Producer not fully asynchronous

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      The new Producer client attempts to be fully asynchronous. However, it sill has the potential to block at the start of the send method when it asks for the metadata for the topic. (waitOnMetadata(record.topic(), this.metadataFetchTimeoutMs))

      There is a timeout (60 seconds, by default), but it would be nice if this lookup was performed in the background thread as well. This way producers could fire and forget without any potential to block the sending thread.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dhay David Hay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: