NB5 Docs► Reference Section► Drivers▼ Kafka 🖺

1. Overview

The NB Kafka adapter allows publishing messages to or consuming messages from

At high level, this adapter supports the following Kafka functionalities

1.1. Example NB Yaml

2. Usage

## Kafka Producer
$ <nb_cmd> run driver=kafka -vv cycles=100 threads=2 num_clnt=2 yaml=kafka_producer.yaml config=kafka_config.properties bootstrap_server=PLAINTEXT://localhost:9092

## Kafka Consumer
$ <nb_cmd> run driver=kafka -vv cycles=100 threads=4 num_clnt=2 num_cons_grp=2 yaml=kafka_producer.yaml config=kafka_config.properties bootstrap_server=PLAINTEXT://localhost:9092

2.1. NB Kafka adapter specific CLI parameters

For the Kafka NB adapter, Document level parameters can only be statically bound; and currently, the following Document level configuration parameters are supported:

Back to top