qmetrics.net

aiokafka

Asyncio client library for Apache Kafka

aiokafka screenshot

Python asyncio producer and consumer for Kafka brokers. It mirrors the Java client style with coordinated consumer groups and optional compression extras.

Overview

aiokafka is a Python client for Apache Kafka built on asyncio. It reuses internals from kafka-python for protocol parsing and errors while exposing async producer and consumer APIs.

AIOKafkaProducer sends messages asynchronously after contacting the cluster for metadata. AIOKafkaConsumer joins consumer groups for coordinated partition assignment on brokers that support modern group protocols, then iterates messages with standard topic, partition, offset, key, value, and timestamp fields.

The client supports Kafka 1.0 and newer brokers with fully coordinated consumer groups. Installation is via pip, with optional extras for LZ4, Snappy, zstd, and GSSAPI authentication where platform build tools are required.

Documentation covers producer buffering, retries, idempotent and transactional produce, offset management, rebalance listeners, SSL and SASL setup, metrics, and differences from kafka-python such as background rebalances and prefetch behavior.

Key features

  • Async Kafka producer client
  • Async consumer with group support
  • Java-like client semantics
  • Optional LZ4 Snappy zstd compression
  • SASL GSSAPI authentication extra
  • SSL context helpers
  • Transactional and idempotent produce
  • Prometheus metrics examples

Use cases

  • Async Python Kafka producers
  • Coordinated consumer group workers
  • Event streaming in asyncio services
  • Migrating from kafka-python patterns

Tags

Similar software

Socket.IO

Bidirectional real-time communication for web and Node

Socket.IO enables low-latency, event-based communication between clients and servers. It prefers WebSockets and falls back to HTTP long-polling when needed.

★ 63.3k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

ntfy

HTTP pub-sub push notification service

Ntfy sends push notifications to phones and desktops via simple HTTP PUT or POST requests and a REST API, without requiring sign-up on the public host.

★ 35.8k⟳ todayApache-2.0

Celery

Distributed task queue for Python workers and brokers

Celery distributes units of work called tasks from client applications to worker processes through a message broker. It supports RabbitMQ, Redis, Amazon SQS, and other transports with retries and scheduling features.

★ 29.3k⟳ yesterdayBSD-3-Clause

NSQ

Realtime distributed message queue and pub-sub platform

NSQ is a distributed messaging system built for large-scale throughput. It avoids single points of failure and ships with official Go and Python client libraries.

★ 25.8k⟳ 3 months agoMIT

Redisson

Java client and real-time data platform for Valkey and Redis

Redisson is a Java client for Valkey and Redis with synchronous, asynchronous, reactive, and RxJava APIs. It adds distributed collections, locks, queues, caching helpers, and related services on top of standard Valkey or Redis deployments.

★ 24.4k⟳ 4 days agoApache-2.0

whatsapp-web.js

Node.js client for WhatsApp Web automation

whatsapp-web.js drives WhatsApp Web through Puppeteer so Node programs can send, receive, and manage chats with many web-client features. It targets multi-device accounts and documents session auth strategies.

★ 23k⟳ 3 days agoApache-2.0
Integration PlatformsDesktop/CLI app