This section covers some setup and code samples to give readers an idea of what it takes to build a Node.js application using Heroku on the Kakfa add-on.
The following table lists commonly used Kafka CLI commands needed to manage topics via CLI. Note that the dynamic creation of these topics is not yet currently supported.
Command | Description |
heroku kafka:topics:create TOPIC_NAME --partitions 100 | This creates the topic name as TOPIC_NAME |
kafka:topics:destroy TOPIC_NAME | This destroys the topic named |
heroku kafka:topics | This lists all the topics |
heroku kafka:topics:info TOPIC_NAME | This gets more information around the topic |
heroku kafka:topics:write TOPIC_NAME MESSAGE | This writes a topic message from CLI for testing purposes |
heroku kafka:topics:tail TOPIC_NAME | This tails the messages for the topic named |