A REST service that makes writing data to Apache Kafka easy.
Detailed documentation can be found at https://www.echo8.dev/krp
Copy the following into a file called config.yaml
:
endpoints:
/messages:
routes:
- topic: test-topic1
producer: alpha
producers:
alpha:
clientConfig:
bootstrap.servers: localhost:9092
Run KRP like this:
krp -config path/to/config.yaml
Finally send some data to Kafka:
curl -X POST -H 'Content-Type: application/json' http://localhost:8080/messages -d '
{"messages": [{"value": {"string": "hello world"}}]}'