https://github.com/bfncs/kafka-query
https://github.com/bfncs/kafka-query
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bfncs/kafka-query
- Owner: bfncs
- Created: 2021-11-19T23:07:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T22:36:22.000Z (over 4 years ago)
- Last Synced: 2024-04-13T09:08:47.053Z (about 2 years ago)
- Language: Java
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka Query Playground
Query kafka topic contents by message key.
## Usage
1. Build application: `mvn clean verify`
2. Start Kafka & Zookeeper: `docker compose up -d`
3. Produce messages in compacted topic: `./produce-messages.sh`
4. Start application: `java -jar target/kafka-query-1.0-SNAPSHOT-jar-with-dependencies.jar`
5. Query kafka topic contents by message key: `curl localhost:8080/`
## Tools
```sh
# Consume compacted topic
docker-compose exec schema-registry kafka-avro-console-consumer --bootstrap-server kafka:9094 --topic inbox
```