GithubHelp home page GithubHelp logo

heroku / heroku-kafka-demo-go Goto Github PK

View Code? Open in Web Editor NEW
14.0 87.0 11.0 7.22 MB

A simple demo app to demonstrate Apache Kafka on Heroku using Go

License: ISC License

Go 83.34% JavaScript 7.97% HTML 7.68% Makefile 0.89% Procfile 0.12%
heroku-data

heroku-kafka-demo-go's Introduction

heroku-kafka-demo-go

A simple Heroku app that demonstrates using Apache Kafka on Heroku 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

Clone the repo:

$ git clone [email protected]:heroku/heroku-kafka-demo-go.git

Create a heroku app with Apache Kafka on Heroku attached:

$ cd heroku-kafka-demo-go
$ 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

Create the consumer group:

Note: This assumes that you are using a basic-0 as specified above. This step is not necessary for standard, private, or shield Apache Kafka on Heroku plans.

$ heroku kafka:consumer-groups:create heroku-kafka-demo-go

Deploy to Heroku and open the app:

$ git push heroku main
$ heroku open

heroku-kafka-demo-go's People

Contributors

ahamidi avatar halorgium avatar jdowning avatar kvlou avatar mble avatar mble-sfdc avatar subakva avatar svc-scm avatar tcrayford avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.