Secret Sauce Partners, Inc.
Transforming apparel & footwear shopping through data.
A Kafka consumer framework. Like Rack but for Kafka.
Rack provides a minimal interface between webservers that support Ruby and Ruby frameworks.
require 'rack'
app = Proc.new do |env|
['200', {'Content-Type' => 'text/html'}, ['Hello budapest.rb!']]
end
Rack::Handler::WEBrick.run app
Rack provides a minimal interface between webservers that support Ruby and Ruby frameworks.
require 'rack/lobster'
use Rack::CommonLogger
use Rack::Lint
use Rack::ShowExceptions
run Rack::Lobster.new
Middlewares
Application
Rack provides a minimal interface between webservers that support Ruby and Ruby frameworks.
require 'rack'
require 'rack/lobster'
app = Rack::Builder.new do
use Rack::CommonLogger
use Rack::ShowExceptions
map "/lobster" do
use Rack::Lint
run Rack::Lobster.new
end
end
Rack::Handler::WEBrick.run app
Middlewares
Application(s)
Glass Octopus provides a minimal interface drivers that support Kafka and Kafka consumers.
require "glass_octopus"
app = GlassOctopus.build do
use GlassOctopus::Middleware::CommonLogger
run Proc.new { |ctx|
puts "Got message: #{ctx.message.key} => #{ctx.message.value}"
}
end
GlassOctopus.run(app) do |config|
config.adapter :ruby_kafka do |kafka|
kafka.broker_list = %[localhost:9092]
kafka.topic = "mytopic"
kafka.group = "mygroup"
kafka.client = { logger: config.logger }
end
end
Glass Octopus provides a minimal interface between Kafka drivers and Kafka consumers.
require "glass_octopus"
app = GlassOctopus.build do
use GlassOctopus::Middleware::CommonLogger
run Proc.new { |ctx|
puts "Got message: #{ctx.message.key} => #{ctx.message.value}"
}
end
GlassOctopus.run(app) do |config|
config.adapter :ruby_kafka do |kafka|
kafka.broker_list = %[localhost:9092]
kafka.topic = "mytopic"
kafka.group = "mygroup"
kafka.client = { logger: config.logger }
end
end
Drivers
Middlewares
Product pipeline
Work with us!
gabor@secretsaucepartners.com
Questions?
gabor@secretsaucepartners.com
By Secret Sauce Partners, Inc.
A Kafka consumer framework. Like Rack but for Kafka.
Transforming apparel & footwear shopping through data.