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

Make KafkaConsumer usable in async runtimes

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • consumer

    Description

      KafkaConsumer contains a check that rejects nested invocations from different threads (method acquire). For users that use an async runtime, this is an almost impossible requirement. Examples of async runtimes that are affected are Kotlin co-routines (see KAFKA-7143) and Zio.

      It should be possible for a thread to pass on its capability to access the consumer to another thread. See KIP-944 for a proposal and https://github.com/apache/kafka/pull/13914 for an implementation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              erikvanoosten Erik van Oosten
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: