A LoopBack 4 example application for Kafka integration.
See related issues:
docker-compose upnpm startNow you can try out on http://localhost:3000/explorer.
To use curl:
- Create new topics
curl -X POST "http://127.0.0.1:3000/topics" -H "accept: */*" -H "Content-Type: application/json" -d "[\"demo\"]"- Publish messages to
demotopic:
curl -X POST "http://127.0.0.1:3000/topics/demo/messages" -H "accept: */*" -H "Content-Type: application/json" -d "[\"test messsage\"]"- Receive messages from
demotopic:
curl -X GET "http://127.0.0.1:3000/topics/demo/messages?limit=3" -H "accept: */*"-@2x.png)