# Kafka Cluster

[Apache Kafka](https://kafka.apache.org/) is a distributed streaming platform that enables the development of real-time, event-driven applications. It is commonly used to build **streaming data pipelines** and **streaming applications** that process and move data between systems in real time. Kafka allows applications to consume and process streams of data at high speed and with high accuracy.

Refer to the [AWS documentation](https://docs.aws.amazon.com/msk/latest/developerguide/what-is-msk.html) for detailed information on using Apache Kafka within the AWS ecosystem.

{% hint style="warning" %}
When creating a Kafka cluster in DuploCloud, if you want to choose a specific cluster configuration or configuration revision, you must first create or define that configuration/revision in the AWS Console before you can select it in DuploCloud.
{% endhint %}

## Creating Kafka clusters

### Creating a provisioned Kafka cluster

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Analytics**.
2. Click the **Kafka** tab.
3. Click **Add**. The **Create a Kafka Cluster** pane displays.
4. Enter a **Kafka Cluster Name**.
5. In the **Cluster Type** list box, select **Provisioned**.
6. From the field list boxes, select you Kafka **Version**, the **Size** of the cluster you want to create, the **Volume** size in gigabytes, and the **Transit Encryption** mode.
7. Optionally, select **Availability Zones.** You must specify a minimum of two (2) **Availability Zones** zones.
8. Optionally, select a **Number of Broker Nodes**.
9. Optionally, select a **Cluster Configuration** and **Configuration Revision** when creating a Kafka Cluster in DuploCloud. The **Cluster Configuration** and **Configuration Revision** list boxes are prepopulated with configurations and revisions previously defined in the AWS Portal.<br>

   <div align="left"><figure><img src="/files/XPXtQu8Y45UFTr8VZpY2" alt="" width="379"><figcaption><p><strong>Create a Kafka Cluster</strong> pane<br></p></figcaption></figure></div>
10. Click **Submit**. It may take up to half an hour to create the cluster and display an **Active** status in the **Kafka** tab

<figure><img src="/files/jZoC6D0OJ8SQBi4wdwDQ" alt=""><figcaption><p><strong>Kafka</strong> tab with Kafka clusters</p></figcaption></figure>

### Creating a serverless Kafka cluster

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Analytics**.
2. Click the **Kafka** tab.
3. Click **Add**. The **Create a Kafka Cluster** pane displays.<br>

   <div align="left"><figure><img src="/files/Kf165ibKm0SH7hymlZAd" alt="" width="359"><figcaption><p>The <strong>Create a Kafka Cluster</strong> pane</p></figcaption></figure></div>
4. Enter a **Kafka Cluster Name**.
5. In the **Cluster Type** list box, select **Serverless**.
6. Optionally, select **Availability Zones.** You must specify a minimum of two (2) **Availability Zones** zones.
7. Click **Submit**. It may take up to half an hour to create the cluster and display an **Active** status in the **Kafka** tab

## Viewing Kafka clusters

View Kafka Clusters by navigating to **Cloud Services** -> **Analytics** in the DuploCloud Portal and selecting the **Kafka** tab.

## Changing Kafka cluster configuration

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Analytics**.
2. Click the **Kafka** tab.
3. Select the Kafka cluster rom the **Name** column. The **Kafka Cluster** page displays.
4. Click the **Actions** menu and select **Change Configuration**. The **Change Cluster Configuration** pane displays.<br>

   <div align="left"><figure><img src="/files/50yquSgxUpWKYTM54GrT" alt="" width="451"><figcaption><p>Kafka Cluster page <strong>Actions</strong> menu displaying <strong>Change Configuration</strong> option</p></figcaption></figure></div>
5. From the **Cluster Configuration** list box, select the new cluster configuration.<br>

   <div align="left"><figure><img src="/files/S1B0L3mu0WjNdkK5bl3r" alt="" width="388"><figcaption><p><strong>Change Cluster Configuration</strong> pane .</p></figcaption></figure></div>
6. From the **Configuration Revision** list box, select the revision of the new cluster configuration.
7. Click **Submit**. The configuration change is displayed on the **Kafka Cluster** page


---

# 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.duplocloud.com/docs/automation-platform/overview/aws-services/kafka-cluster.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.
