Inferensys

Glossary

Apache Pulsar

Apache Pulsar is a cloud-native, distributed messaging and streaming platform that separates compute from storage, offering multi-tenancy, geo-replication, and support for both queuing and streaming semantics.
Stylish home-office setup in a modern highrise apartment, floor-to-ceiling windows showing city skyline at golden hour, a laptop displaying a beautiful semantic search interface.
CLOUD-NATIVE MESSAGING

What is Apache Pulsar?

A distributed messaging and streaming platform that uniquely separates compute from storage, enabling independent scaling, multi-tenancy, and native geo-replication.

Apache Pulsar is a cloud-native, distributed messaging and streaming platform that decouples the serving layer from the storage layer using Apache BookKeeper. This architectural separation allows for independent scaling of compute and storage, providing seamless cluster expansion without data rebalancing. It natively supports both queuing and streaming semantics within a single unified model.

Designed for multi-tenant environments, Pulsar offers strong isolation and resource management. Its built-in geo-replication engine provides configurable asynchronous data synchronization across data centers for disaster recovery. Pulsar's tiered storage architecture offloads historical data to cost-effective storage like Amazon S3, effectively providing infinite stream retention.

APACHE PULSAR

Core Architectural Features

Apache Pulsar's architecture is defined by a strict separation of compute and storage, enabling independent scaling, multi-tenancy, and unified messaging semantics.

02

Multi-Tenancy

Pulsar natively supports a hierarchical multi-tenancy model with Properties, Namespaces, and Topics. This provides strong isolation and resource management for different teams or applications within a single cluster. Key features include:

  • Authentication and Authorization: Pluggable security at the namespace level.
  • Storage Quotas: Limit storage per namespace to prevent noisy neighbors.
  • Resource Isolation: Allocate specific bookie groups to critical tenants.
04

Unified Messaging Model

Pulsar uniquely supports both queuing and streaming semantics on a single topic through its subscription model.

  • Exclusive/Failover: Strict queuing, where only one consumer in a subscription receives messages.
  • Shared: Competing consumers, like a traditional message queue.
  • Key_Shared: Messages with the same key are delivered to the same consumer, ensuring ordering.
  • Exclusive: Each consumer in the subscription reads all messages, enabling fan-out streaming.
STREAMING PLATFORM COMPARISON

Apache Pulsar vs. Apache Kafka

A technical comparison of the two leading distributed messaging and streaming platforms for event-driven architectures.

FeatureApache PulsarApache Kafka

Architecture

Multi-layer: compute (brokers) separated from storage (BookKeeper)

Monolithic: brokers handle both compute and storage

Multi-Tenancy

Native Geo-Replication

Message Consumption Model

Queuing (shared) and Streaming (exclusive/failover)

Streaming (consumer groups) only

Topic Partitioning

Unlimited partitions per topic; partitions are lightweight

Limited partitions per topic; repartitioning requires data reshuffling

Storage Scaling

Independent: add BookKeeper nodes without rebalancing data

Coupled: adding brokers requires partition reassignment and data rebalancing

Message Acknowledgment

Individual (per-message) or cumulative

Cumulative (offset-based) only

Protocol Support

Native Pulsar protocol; Kafka-on-Pulsar (KoP) for Kafka wire protocol

Kafka wire protocol only

APACHE PULSAR EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Apache Pulsar's architecture, core concepts, and operational characteristics.

Apache Pulsar is a cloud-native, distributed messaging and streaming platform that uniquely separates compute from storage. It works by using a two-layer architecture: a stateless broker layer that handles message serving and a stateful bookie layer (powered by Apache BookKeeper) that provides durable, replicated storage. Producers publish messages to topics, which are partitioned for scalability. Brokers route these messages to consumers while asynchronously writing data to bookies. This separation allows Pulsar to scale compute and storage independently, support multi-tenancy natively, and offer both queuing and streaming semantics within a single platform.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.