Skip to main content

Kafka Destination – Streams

Updated on
Jul 20, 2026

Kafka destinations let you stream blockchain data to Apache Kafka topics for high-throughput event streaming and integration with existing data pipelines.

Why use Kafka?


  • High Throughput: Handle massive volumes of blockchain data with Kafka's distributed architecture
  • Real-Time Processing: Enable real-time stream processing with Kafka Streams or ksqlDB
  • Durability: Messages are persisted to disk and replicated across brokers
  • Integration: Connect to your existing data infrastructure, analytics tools, and microservices
  • Scalability: Horizontally scale consumers to process data in parallel

Configuration

Follow the Quickstart Guide to create a stream. When you reach the destination step, select Kafka and configure the following fields:


Kafka destination configuration
FieldDescription
Bootstrap ServersComma-separated list of Kafka broker addresses (host:port)
Topic NameKafka topic to publish messages to
Security ProtocolConnection security: Plaintext, SSL, SASL_Plaintext, or SASL_SSL
Compression TypeMessage compression: None, Gzip, Snappy, LZ4, or Zstd
Batch SizeMaximum bytes to batch before sending (default: 16384)
Linger (ms)Time to wait for additional messages before sending a batch (default: 5)
Max Message BytesMaximum size of a single message (default: 1048576)
Timeout (sec)Time to wait for broker acknowledgment (default: 30)
Retry wait periodSeconds to wait between retry attempts (default: 1)
Pause stream afterNumber of failed retries before the stream pauses (default: 3)

Click Check Connection to verify your Kafka cluster is reachable before creating the stream.

Security Protocols


Kafka supports multiple security protocols for connecting to your cluster. Choose based on your security requirements:

ProtocolDescription
PlaintextNo encryption or authentication (development only)
SSLTLS encryption without SASL authentication
SASL_PlaintextSASL authentication without encryption
SASL_SSLBoth TLS encryption and SASL authentication (recommended for production)

Compression


Compression reduces network bandwidth and storage costs. Choose based on your priorities:

TypeSpeedRatioCPU UsageBest For
NoneFastestNoneLowestLow latency requirements
LZ4Very fastGoodLowGeneral use
SnappyFastGoodLowBalanced performance
ZstdModerateBestModerateBest compression
GzipSlowVery goodHighMaximum compatibility

For most use cases, Zstd offers the best balance of compression ratio and speed.


Other Destinations

Support

Share this doc