https://github.com/schultyy/schema-registry-demo
Example Code for Schema Registry Intro blogpost
https://github.com/schultyy/schema-registry-demo
kafka rust
Last synced: about 1 year ago
JSON representation
Example Code for Schema Registry Intro blogpost
- Host: GitHub
- URL: https://github.com/schultyy/schema-registry-demo
- Owner: schultyy
- Created: 2023-04-17T21:03:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T21:06:02.000Z (about 3 years ago)
- Last Synced: 2025-04-06T23:35:29.977Z (about 1 year ago)
- Topics: kafka, rust
- Language: Rust
- Homepage: https://dev.to/ciscoemerge/what-is-the-schema-registry-and-why-do-you-need-to-use-it-1jhc
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schema Registry with Rust
## Start Kafka
```bash
$ docker-compose up
```
## Create a Topic
```bash
$ docker-compose exec broker kafka-topics --create --bootstrap-server \
localhost:9092 --replication-factor 1 --partitions 1 --topic chatroom-1
```
## Create a new schema
```bash
jq '. | {schema: tojson}' schema.avsc | curl -XPOST http://localhost:8085/subjects/chat_message/versions -H 'Content-Type: application/json' -d @-
```
## Run the code
```bash
$ cargo run -p consumer
```
In a separate terminal window, run:
```bash
$ cargo run -p producer
```