Redpanda

On this page 7

Redpanda is a Kafka API-compatible event streaming platform written in C++ that stores and serves ordered, replicated logs of records for producers and consumers in streaming data systems. It accepts the Kafka wire protocol, so existing Kafka clients, connectors and stream processors usually work without code changes, while the broker itself replaces the Java virtual machine and ZooKeeper with a single native binary.

Within the Data field, Redpanda belongs to the same category as Kafka, Apache Pulsar and Amazon Kinesis: a durable log that decouples the systems that produce events from the systems that consume them. Its design goals are predictable tail latency, simpler operations and efficient use of modern hardware such as NVMe drives and many-core CPUs.

How the Redpanda broker is built

Redpanda achieves its performance profile through a thread-per-core architecture built on the open-source Seastar framework. Each CPU core runs one pinned thread that owns a shard of memory, network connections and partitions, so cores communicate by explicit message passing instead of shared locks.

Storage access avoids the operating system page cache. The broker uses direct and asynchronous disk I/O, manages its own cache and writes in aligned blocks, which keeps latency stable when memory pressure or background flushing would otherwise cause stalls. Replication relies on the Raft consensus protocol, with one Raft group per partition, so leader election and log replication need no external coordination service.

The table below summarizes the main internal components and what each one replaces or provides.

ComponentRoleKafka-equivalent concept
Seastar runtimeThread-per-core scheduling and asynchronous I/OJVM threads and page cache
Raft groupsPer-partition replication and leader electionISR replication plus KRaft or ZooKeeper
Controller Raft groupCluster metadata, topics and configurationKRaft controller quorum
Built-in schema registryStores Avro, Protobuf and JSON schemasSeparate schema registry service
HTTP proxyREST access to produce and consumeSeparate REST proxy
Tiered storageOffloads older segments to object storageKafka tiered storage
Core components of a Redpanda cluster

Durability and delivery guarantees in Redpanda

Redpanda acknowledges a write with acks=all only after a majority of replicas have persisted it to disk, because Raft requires an fsync before a follower confirms an entry. Kafka, by contrast, traditionally acknowledges once replicas hold the record in memory and relies on replication across failure domains rather than immediate flushing.

Delivery semantics follow the Kafka model. At-least-once delivery is the default outcome when consumers commit offsets after processing, and idempotent producers remove duplicates caused by retries. Redpanda also implements Kafka transactions, which allow exactly-once semantics for read-process-write pipelines when clients use transactional APIs and consumers read with read_committed isolation.

The following table shows how common producer settings map to durability and latency in practice.

Producer settingWhen the write is acknowledgedMain trade-off
acks=0Immediately after sendingLowest latency, possible silent loss
acks=1After the leader receives the recordLoss if the leader fails before replication
acks=allAfter a Raft majority persists the recordHighest durability, slightly higher latency
Idempotent producerAs configured, with sequence numbersPrevents duplicates from retries
Transactional producerOn transaction commitAtomic multi-partition writes, more coordination
Producer acknowledgment settings and their effects

Redpanda compared with Kafka and other brokers

Redpanda differs from Kafka mainly in implementation and operations, not in the programming model. Topics, partitions, consumer groups, consumer offsets and retention policies behave the same way, which is why teams can often move clients by changing only the bootstrap server address.

Compatibility is broad but not total. Some newer Kafka protocol features and certain broker-side behaviors arrive later or differ in detail, so production migrations should include client compatibility testing. Redpanda also does not run the Kafka Streams library or Kafka Connect workers inside the broker; those remain separate client applications, exactly as they are with Kafka.

PlatformImplementationCoordinationTypical strength
RedpandaC++, single binaryBuilt-in RaftLow tail latency, simple deployment
Apache KafkaJava and Scala on the JVMKRaft, formerly ZooKeeperLargest ecosystem and tooling
Apache PulsarJava, brokers plus BookKeeperZooKeeper or OxiaCompute and storage separation, multi-tenancy
Amazon KinesisManaged cloud serviceFully managedNo servers to operate on AWS
Redpanda compared with related streaming platforms

Deploying and operating Redpanda

Redpanda runs on bare metal, virtual machines, containers and Kubernetes, and is also offered as a managed service in dedicated, bring-your-own-cloud and serverless forms. The rpk command-line tool handles cluster configuration, topic management and automatic system tuning, which adjusts interrupt affinity, disk schedulers and CPU frequency settings for the host.

Capacity planning follows hardware rather than JVM heap sizing. Because each core owns its partitions, CPU core count, memory per core and NVMe throughput determine how much load a node can absorb. Tiered storage moves older log segments to object storage, which allows long retention at lower cost while local disks hold only recent data.

The decision table below helps match common situations to a suitable Redpanda configuration.

SituationRecommended choiceReason
Latency-sensitive trading or telemetryLocal NVMe, acks=all, few large nodesStable p99 latency with full durability
Months of event history requiredEnable tiered storageObject storage is cheaper than broker disks
Small team without platform engineersManaged cloud offeringRemoves upgrades and capacity work
Lightweight event filtering inside the brokerWebAssembly data transformsAvoids a separate processing service
Edge site with limited hardwareSingle-node or three-node clusterLow resource footprint per binary
Configuration choices for common workloads

Limitations and common mistakes with Redpanda

The most frequent misconception is that Kafka compatibility means identical behavior in every corner case. Administrative APIs, metrics names, configuration keys and some edge semantics differ, so monitoring dashboards and automation scripts written for Kafka usually need adaptation.

  • Licensing matters: the core is source-available under the Business Source License, and some enterprise features require a commercial license, which affects redistribution and managed-service use.
  • Undersized hardware hides the benefits: thread-per-core designs expect dedicated cores, so noisy shared virtual machines can erase latency advantages.
  • Too many partitions per core increases memory use and Raft overhead; partition counts should follow measured throughput, not habit.
  • Skipping backpressure design in consumers still causes lag, because a fast broker cannot compensate for slow downstream processing.
  • Ecosystem gaps can appear with niche Kafka tools that depend on JVM internals or unsupported protocol versions.

Explained without jargon

Imagine a very fast, very reliable conveyor belt for messages. Applications place messages such as clicks, payments or sensor readings on the belt, and other applications pick them up in the same order, whenever they are ready. Redpanda is that conveyor belt.

It speaks the same language as Kafka, the best-known system of this kind, so programs built for Kafka can usually use Redpanda without being rewritten. The difference is under the hood: Redpanda is a single, compact program that squeezes more work out of each processor and keeps delays short and steady. The key idea is familiar behavior with simpler, faster machinery.

A typical use case

A mid-sized online retailer collects about 200,000 events per second from its website, mobile app and warehouse scanners. Its existing Kafka cluster of nine JVM brokers and a separate ZooKeeper ensemble needs frequent tuning, and checkout fraud checks occasionally see latency spikes above 200 milliseconds during traffic peaks.

The data engineering team deploys a three-node Redpanda cluster on servers with 16 cores and local NVMe drives, enables tiered storage for 90 days of retention and points its existing Kafka producers, Flink jobs and consumer groups at the new bootstrap addresses. After a month of parallel running and compatibility tests, the team switches traffic over. The fraud service now sees p99 latency of roughly 15 milliseconds, the cluster needs fewer machines, and the on-call load drops because there is no separate coordination service to maintain.