# Kafka

{% embed url="<https://youtu.be/aj9CDZm0Glc?si=1XZL0MXS3gxY9-ss>" %}

{% embed url="<https://youtu.be/Ch5VhJzaoaI?si=MoKaPVBl4znibyp5>" %}
<https://strimzi.io/docs/operators/latest/overview#kafka-concepts_str>
{% endembed %}

{% embed url="<https://medium.com/inspiredbrilliance/kafka-basics-and-core-concepts-5fd7a68c3193>" %}

Strimzi also wrote about kafka here <https://strimzi.io/docs/operators/latest/overview#kafka-concepts_str>

## Note

* If you set a topic's consumer to autoscale (by using k8 or similar orchestrator), you must make sure that the max pod is no more than the amount of the topic's partition.
  * This is because of each topic's partition can only be assigned to one subscriber.
* It is okay for your consumer to be less than the topic's partition amount, because each consumer can handle multiple partitions from the same topic.


---

# 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://note.levelcode.org/software-engineering-notes/messaging/brokers/kafka.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.
