A simple demo app to demonstrate Apache Kafka on Heroku using Go
Go HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
templates
vendor
.gitignore
LICENSE
Procfile first version Apr 22, 2016
README.markdown
main.go

README.markdown

heroku-kafka-demo-go

A simple heroku app that demonstrates using Kafka in Go. 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 apps:create your-cool-app-name
$ heroku addons:create heroku-kafka:basic-0

Create the sample topic. By default, the topic will have 8 partitions:

$ heroku kafka:topics:create messages

Deploy to Heroku and open the app:

$ git push heroku master
$ heroku open