Registry / messaging / ruby-kafka

ruby-kafka

JSON →
library1.5.0rbrubygemsunverified

A client library for the Kafka distributed commit log.

gem install ruby-kafka
INSTALL
IMPORT
SIG · RUBY-KAFKA
R
ruby-kafka
messagingrubyv1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Kafka
require 'kafka'

Connects to Kafka and produces a message to a topic.

require 'kafka' kafka = Kafka.new(seed_brokers: ['localhost:9092']) producer = kafka.producer producer.produce('hello', topic: 'greetings') producer.deliver_messages
Debug
Known issues
breakingRuby 2.5+ required; older versions not supported.
fix
Upgrade Ruby to 2.5 or later.
affects: < 1.5.0
Upgrade
Version history
1.5.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
ruby-kafka — gem install ruby-kafka · libregistry