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

Add another constructor to ProducerData for the very simple case of sending a single message with default partitioning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.6
    • None
    • None

    Description

      Currently, to send a single message, you have to create a list, add a single message to it, wrap it up in a ProducerData object and then send it.

      For the most basic use case of sending a single message, with random partitioning, it is reasonable to provide an api that takes in just the topic and a single message.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified