Open
Description
We're a small team with a small set of kafka topics and clients, but already we need a self-documenting way to create and update topics.
Use cases:
- Ensure that a topic exists in minikube, or docker-compose, during development.
- Ensure that a topic exists in production during service provisionting in Kubernetes.
- Edit
retention.ms
. - Knowing if the topic was created with key and/or value scemas in mind.
Using kafka-topics.sh or the java api ok for testing, but for instance with production topics we want to create them with 1 replica during dev and >=3 in a real ckluster.
An option is to use helm for topic creation manifests. I've searched for best practices, like tooling other organizations use, but with no luck. I imagine most teams will want to document their kafka topics, beyond a naming convention.