Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Demo Rails application with hooks to fire events to Kafka

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.rdoc

A sample application to demonstrate a potential Kafka implmentation.

Files:

  • lib/kafka_log.rb: ferries messages to Kafka

  • app/models/event_handler.rb: API for controllers and models to fire log events

  • app/controllers/application_controller.rb: flushes the Kafka log after each request

  • app/controllers/posts_controller.rb: scaffold generated sample posts controller with some Kafka events

  • config/initializers/kafka_log.rb: starts the Kafka delivery thread

Something went wrong with that request. Please try again.