Kafka Consume

Enterprise only

Server-sent eventsv3.10+

Configure the Kafka Consume plugin to stream messages using server-sent events.

Prerequisites

Environment variables

  • BOOTSTRAP_SERVER_HOST: The bootstrap server host

  • KAFKA_TOPIC: The name of the Kafka topic to consume from.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: kafka-consume
    config:
      bootstrap_servers:
      - host: ${{ env "DECK_BOOTSTRAP_SERVER_HOST" }}
        port: 9092
      topics:
      - name: ${{ env "DECK_KAFKA_TOPIC" }}
      mode: server-sent-events
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!