/heroku-kafka-demo-ruby

A simple demo app to show off Heroku Kafka from Ruby

Primary LanguageRubyISC LicenseISC

heroku-kafka-demo-ruby

A simple heroku app that demonstrates using Kafka in ruby. This demo app accepts HTTP POST requests and writes them to a topic, and has a simple page that shows the last 10 messages produced to that topic.

You'll need to provision the app.

Provisioning

Install the kafka cli plugin:

$ heroku plugins:install heroku-kafka

Create a heroku app with Kafka attached:

$ heroku create
$ heroku addons:create heroku-kafka:beta-dev
$ heroku kafka:wait

Create the sample topic, by default the topic will have 32 partitions:

$ heroku kafka:create messages

Deploy to Heroku and open the app:

$ git push heroku master
$ heroku open