Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3658

Allow the FlinkKafkaProducer to send data to multiple topics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Connectors / Kafka
    • None

    Description

      Currently, the FlinkKafkaProducer is sending all events to one topic defined when creating the producer.

      We could allow users to send messages to multiple topics by extending the KeyedSerializationSchema by a method public String getTargetTopic(T element) which overrides the default topic if the return value is not null.

      Attachments

        Activity

          People

            rmetzger Robert Metzger
            rmetzger Robert Metzger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: