qmetrics.net

Ruby Kafka

Ruby client library for Apache Kafka

Ruby Kafka is no longer maintained. The project says: “This library is no longer actively developed and has been superseded by librdkafka via rdkafka-ruby bindings.” source Look at the maintained alternatives below before choosing it.

Ruby Kafka screenshot

ruby-kafka is a Ruby gem for producing and consuming Kafka messages, focused on operational simplicity with logging and metrics. Maintenance has shifted to rdkafka-ruby.

Overview

ruby-kafka connects Ruby applications to Apache Kafka clusters. A client is initialized with seed brokers and discovers the rest of the cluster, keeping its own broker connection pool for a single thread.

Producers can send single messages or buffer batches with retries and delivery guarantees. An asynchronous producer API avoids blocking the caller by delivering in a background thread, with optional buffer-size and interval policies. Consumers support groups, checkpointing, subscriptions, and batch reads.

Message keys and values are treated as binary data so teams pick their own serialization, such as JSON or Avro. Partitioning can spread load or pin related events to one partition via partition or message keys. SSL and SASL security options are documented.

The maintainers state the library is no longer actively developed and recommend librdkafka via rdkafka-ruby for production, though security and bug fixes may still appear. Kafka broker version support varies by gem release series, with fuller coverage on older broker lines and limited support on newer Kafka versions.

Key features

  • Cluster discovery from seed brokers
  • Sync and async producers
  • Consumer groups and checkpointing
  • Configurable partitioning keys
  • SSL and SASL authentication
  • Instrumentation and metrics hooks
  • Topic management helpers
  • Buffering with retry handling

Use cases

  • Ruby apps publishing to Kafka
  • Ruby consumers in consumer groups
  • Rails apps streaming events
  • Legacy Kafka 0.9–0.10 integrations

Tags

Similar software

Bull

Redis-backed distributed job queue for Node.js

Bull is a Node.js queue library backed by Redis for delayed, prioritized, repeatable, and rate-limited background jobs with sandboxed workers.

  • Redis-backed durable queues
  • Delayed and cron-repeatable jobs
  • Job priorities and rate limiting
JavaScriptDetails →
★ 16.3k⟳ 6 months agoMIT
Open Source Alternative to:Amazon SQS

Asynq

Redis-backed distributed task queue for Go

A Go library for enqueueing background work and processing it with worker pools backed by Redis.

  • Redis-backed task queues
  • Scheduled and periodic tasks
  • Retries and crash recovery
GoCLIDetails →
★ 13.9k⟳ 23 days agoMIT

sarama

Go client library for Apache Kafka

Sarama is a Go module that implements an Apache Kafka client. It includes mocks for tests, example applications, and command-line utilities for diagnostics.

  • Apache Kafka protocol client
  • Go module with semver API
  • Mocks subpackage for unit tests
GoDetails →
★ 12.5k⟳ todayMIT

RQ

Redis-backed background job queue for Python

RQ is a Python library that queues functions for background workers backed by Redis or Valkey. It targets simple setup with scaling patterns for larger deployments.

  • Function calls enqueued to Redis queues
  • Workers with prioritized queue lists
  • Deferred and scheduled job execution
PythonDetails →
★ 10.7k⟳ 6 days agoBSD-2-Clause

BullMQ

Redis-backed distributed job queue for Node and other languages

BullMQ is an open-source message queue and job processor built on Redis, with client libraries for several runtimes.

  • Redis-backed job queues
  • Multi-language producer and worker clients
  • Delayed, scheduled, and repeatable jobs
TypeScriptDetails →
★ 9.7k⟳ todayMIT

MobileIMSDK

Cross-platform instant messaging transport SDK

MobileIMSDK is a lightweight IM protocol stack with UDP, TCP, and WebSocket options, Netty-based server, and client libs for Android, iOS, Java, and related mobile targets.

  • UDP TCP WebSocket protocols
  • Netty-based IM server
  • QoS resend and deduplication
Objective-CAndroid, iOSDetails →
★ 6.1k⟳ 1 month agoApache-2.0