Search
Close this search box.

The Reasons for Data Mesh on Pulsar

Data mesh is quickly becoming a way for companies to roll out their data strategy. If you haven’t already learned about data mesh, I suggest doing so. It comes with organizational and technical changes. I think a crucial part of your data mesh revolves around the choice of publish/subscribe technologies.

At the crux of data mesh is a desire for flexibility. This flexibility extends from the creation of data products (publish) all the way to the consumption of data products (subscribe). Greater flexibility in data mesh means that teams creating and consuming data products have even less coordination between themselves.

To help us look at the pub/sub needs for data teams, we’ll compare Apache Pulsar and Apache Kafka.

There isn’t a vast difference between publishing data in Pulsar or Kafka from a cursory look. They both have similar publish APIs. However, Kafka lacks a built-in schema registry, whereas Pulsar has a built-in schema registry that prevents incorrect schema usage. Data mesh calls for discovery and schema services. However, I still believe these should be built into the technology itself and not be added on.

Another significant difference between Kafka and Pulsar that isn’t as well known is that once data is published into a Kafka topic, it can’t be consumed in any other way than through reading that partition. This manifests when teams have to choose between wanting an ordered topic or random ordering, such as a round-robin layout. Before a team can answer this question, the team needs to know how the data will be consumed. In a data mesh scenario, the team producing the data product may be able to talk to the team or predict all the ways their data will be consumed in current or future use cases. In these situations, the team would be forced to publish their data product twice, once into an ordered topic and again into a random topic. The Kafka solution adds complexity in both the operations, by doubling the data and load, and programmatically by having to know which topic is ordered or random.

With Pulsar, this choice is dramatically different. Pulsar allows for different methods of consumption that can be chosen by the consumer. In this case, the producer can produce in an ordered manner. The data product consumer can choose from several ways of maintaining order or randomized data. Pulsar is flexible enough to let the downstream consuming team choose for themselves.

Can you switch careers to Big Data in 4 months or less?

If you’re a Software Engineer or Data Analyst, I’ve written a book on switching careers to Big Data. Inside, I show you:

  • How to switch careers: the 7 things you need to answer before making a career switch (page 77)

  • What to learn: the 15 Big Data technologies you should know (page 67)

  • Specific career advice: what you need to do to switch from your current title (page 46)

You have Successfully Subscribed!

A common use case for pub/sub is messaging. With messaging, consumption requires the ability to individually acknowledge that a message was consumed and processed. Kafka’s messaging support entails workarounds whereas Pulsar supports this natively. Once again, Kafka requires more coordination and operational considerations. Pulsar allows for the consumer of the data product to make the choice.

I always recommend using managed services whenever you are running on the cloud. There are two main managed services for Pulsar on the major cloud providers. StreamNative has StreamNative Cloud and DataStax has DataStax Astra.

I think a critical feature of the technologies for data mesh is flexibility. We don’t want to have to complicate our technical landscape with the various limitations of our core technologies. One of those core technologies is our choice of pub/sub. Data teams won’t know ahead of time all of the ways that the data products will be consumed. We can clearly see that Pulsar will make it far easier for data mesh while Kafka will complicate it. When doing data mesh, I highly recommend Pulsar as the pub/sub of choice.

 

KPIs Every Data Team Should Have

Data teams can be challenging. KPIs (Key Performance Indicators) are different from other teams. The team’s value creation and performance are distinct. I want to share some KPIs.
Before emba…

Ten Years On – The Million Monkeys Project

I want to tell you a story about how my life changed. It wasn’t a cult, new religion, or programming language. A million monkeys changed my life.
Ten years ago, I randomly recreated…

Analysis of Confluent’s S1

Confluent just filed their S1 to IPO. I worked with Confluent starting in March of 2015, and we eventually parted ways. At my company, we continue to work with streaming technologies, inc…

It’s Time to Change How We Manage Data Teams

As a distributed systems person, I’m used to figuring out how to spread a problem out to the most number of computers possible. Spreading out a problem lets me leverage my resources far b…

Data Engineering Technology Tree

“What we know is a drop, what we don’t know is an ocean.” ― Isaac Newton

Data engineering is one of the disciplines where you just know a drop. Some companies are saying it’s easy, a…

Data Teams Survey Results

Between August 19, 2020, and October 17, 2020, I ran a survey to get more data for my latest book Data Teams. Overall, we had 86 respondents.
This survey was designed to get information abo…