Kafka Multi-tenancy in Pulsar

Multi-tenancy is a native built-in feature of Pulsar. Multi-tenancy allows different departments or teams within an organization to share a Pulsar cluster while keeping their data isolated, saving on infrastructure costs.

Multi-tenancy also helps applications work in a shared environment by providing structure, security, and resource isolation.

Namespaces live between tenants and topics, providing an additional layer where topics with similar policy or security requirements can be managed.

The great news is you’ve already been using Pulsar multi-tenancy with Kafka!

In KafkaHelloWorld you published messages to summitstudent1.developer.kafkahelloworld which corresponds to the tenant.namespace.topic. Notice the use of “.” between the tenant, namespace, and topic. This nomenclature is for using Pulsar multi-tenancy with Kafka and is different than general Pulsar multi-tenancy which uses “/”. You don’t have permissions to produce messages in other students’ tenants.