# Kafka Producer

In Apache Kafka, a "producer" is a client application or program that is responsible for publishing (or writing) messages to a Kafka topic.

A Kafka producer sends messages to Kafka brokers, which are then distributed to the appropriate consumers based on the topic, partitioning, and other configurable parameters.

**Please follow the below mentioned steps to configure the meta information of Kafka Producer:**

<figure><img src="https://content.gitbook.com/content/q2i9CKCFbySxr6jRoJfA/blobs/ye3daryTk15xbaX0nGyf/image.png" alt=""><figcaption><p>Kafka Producer Tasks</p></figcaption></figure>

* **Topic Name:** Specify topic name where user want to produce data.
* **Security Type:** Select the security type from drop down:
  * Plain Text
  * SSL
* **Is External:** User can produce the data to external Kafka topic by enabling **'Is External'** option. **‘Bootstrap Server’ and ‘Config’** fields will display after enable **'Is External'** option.
  * **Bootstrap Server:** Enter external bootstrap details.
  * **Config:** Enter configuration details.
* **Host Aliases:** In Apache Kafka, a host alias (also known as a hostname alias) is an alternative name that can be used to refer to a Kafka broker in a cluster. Host aliases are useful when you need to refer to a broker using a name other than its actual hostname.
  * **IP:** Enter the IP.
  * **Host Names:** Enter the host names.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/data-pipeline-2/getting-started/homepage/create/creating-a-new-job/task-components/writers/kafka-producer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
