Skip to content

huber14/kafka-twitter-fanout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-twitter-fanout

This app is one component of a data processing pipeline example using Apache Kafka on Heroku. See the Getting Started Guide for more details.

Running Locally

Make sure you have Node.js > 5.x, Heroku CLI installed, and an Apache Kafka on Heroku cluster running.

Additionally, you'll need to copy .env.sample to .env and provide values for all of the environment variables listed.

  • KAFKA_URL: Comma-separated list of Kafka broker URLs
  • KAFKA_CLIENT_CERT: Contents of the Kafka client certificate. This is set on a Heroku app when the Apache Kafka on Heroku add-on is attached.
  • KAFKA_CLIENT_CERT_KEY: Contents of the Kafka client certificate key. This is set on a Heroku app when the Apache Kafka on Heroku add-on is attached.
  • TWITTER_TRACK_TERMS: Comma-separated list of terms being tracked from the Twitter Streaming API.
  • KAFKA_TOPIC: Kafka topic name from which to consume messages.
git clone git@github.com:heroku/kafka-twitter-fanout.git # or clone your own fork
cd kafka-twitter-fanout
npm install
heroku local

Your app should now be running on localhost:5000.

Deploying to Heroku

heroku create
heroku addons:attach my-kafka-app::KAFKA
# where my-kafka-app is the original app the kafka cluster was attached to

heorku config:set TWITTER_TRACK_TERMS= # comma-separated list of terms being tracked
heorku config:set KAFKA_TOPIC= # Kafka topic from which to consume messages

git push heroku master

Documentation

For more information about using Apache Kafka on Heroku, see these resources:

About

Part of a data processing pipeline example using Apache Kafka on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%