S11 E28: The Temporal Correctness Crisis: Why Static RAG Context Leads to Broken AI Agent Actions and How to Engine-Unify Real-Time Streaming Data with Hojjat Jafarpour, Founder & CEO of DeltaStream [0:00:00] Hojjat Jafarpour: At that time, Snowflake was a good proof that you can build cloud-only product. It can get a lot of usage and people are moving towards cloud. So the first idea was to build something only for cloud, because if you want to build anything that works for both cloud and on-prem, you can get stuck with the least common denominator of capabilities. We wanted to build something that we can have as much simplicity, as much value for the user. So we decided to build a cloud-only platform, similar to Snowflake, but for streaming data, meaning that you would be able to process your streaming data in the cloud environment without having to deal with the infrastructure operations and all of those things. My name is Hojjat Jafarpour. I'm the founder and CEO at DeltaStream. [0:00:46] Noah Labhart: This is Code Story, a podcast bringing you interviews with tech visionaries. [0:00:51] Clip: Six months moonlighting. There's nothing on the back end. [0:00:55] Noah Labhart: Who share what it takes to change an industry. [0:00:57] Clip: I don't exactly know what to do next. Took many goes to get right. [0:01:01] Noah Labhart: Who built the teams that have their back. [0:01:04] Clip: A company is its people. The teams help each other achieve more. Most proud of our team. [0:01:08] Noah Labhart: Keeping scalability top of mind. [0:01:11] Clip: All that infrastructure was a pain. Yes, we've been fighting it as we grow. Total waste of time. [0:01:15] Noah Labhart: The stories you don't read in the headlines. [0:01:17] Clip: It's not an easy thing to achieve, mind you. Took it off the shelf and dusted it off and tried it again. [0:01:21] Noah Labhart: to ride the ups and downs of the startup life. [0:01:25] Clip: You need to really want it. It's not just about technology. [0:01:28] Noah Labhart: All this and more on Code Story. I'm your host, Noah Labhart. And today, how Hojjat Jafarpour is enabling you to not only stream data, but to build the future on it and power real-time decisions. Hojjat Jafarpour lives with his family in California. He got his PhD in databases and data streaming back when the landscape was different and data streaming wasn't quote-unquote cool yet. He was an early member at Confluent, but also spent time at Quantcast, Informatica, and NEC Labs. But outside of tech, he has a family with young kids. He enjoys traveling and can't wait until the kids are old enough to take big trips. Hojjat joined Confluent in their early days. He was on a project that built out KSQL, which was a key cornerstone of Confluent. As these were the early days of stream processing, he started to think about ways to make it easier, i.e. to make this sort of tech available without all the infrastructure. This is the creation story of DeltaStream. [0:02:42] Hojjat Jafarpour: One of the main reasons to start DeltaStream goes back to my experience at Confluent. As I mentioned, I joined Confluent early on, before the second anniversary. And when I joined, the project that I was going to work on was having a SQL layer on top of streaming data in Kafka, meaning that simplifying processing streaming data. And that totally made sense because, as I mentioned earlier, during my PhD, I worked on different earlier versions of streaming data. And after that in industry, I worked on a few companies that I built SQL there on top of different systems, on top of key value stores, on top of custom map reduce and so forth. But it kind of seemed to be a very interesting match of things that I have been doing already and like good confluence of streaming and SQL in one project. So I started this project, we called it KSQL. And it was one of the first steps in the community on top of Kafka, went on to be one of the main offerings of Confluent, both for Confluent Cloud and Confluent Platform. But usually, as always, when you build something for the first time, you make a lot of decisions, but as you see how people are using it and how things evolve, you learn a lot and you see the mistakes, see the things that you could do better. And that was the main motivation to actually start Delta Stream. Seeing the difficulties that people had with running streaming, stream processing infrastructure. So emergence of Cloud as a catalyst of making things much, much easier and taking away complexity from the user. That was like a trigger for coming up with the idea of what if we take away the complexity and make stream processing super easy for folks without having them to think about infrastructure. So that was like a thought process behind starting DeltaStream. and once I left Confluent, I raised our seed round and started the company to build a serverless stream processing platform to simply simplify building stream processing applications on top of data and Kafka and similar systems. [0:04:50] Noah Labhart: Tell me about the MVP for Delta Streams, that first version you built. How long did it take to build and what sort of tools were you using to bring it to life? [0:05:00] Hojjat Jafarpour: Let me give you a little bit of philosophy behind DeltaStream, why we started and what was the goal in the beginning. So this goes back to 2020, 2021, those years. And at that time, Snowflake was a good proof that you can build cloud-only product and it can get a lot of usage and people are moving towards cloud. So the first idea was to build something only for cloud, because if you want to build anything that works for both cloud and on-prem, you can get stuck with least common denominator of capabilities. These are two different environments. So we wanted to build something that we can have as much simplicity, as much value for the user. So we decided to build a cloud-only platform, similar to Snowflake, but for streaming data, meaning that you would be able to process your streaming data in the cloud environment without having to deal with the infrastructure, operations, and all of those things. And this was like a first step, streaming data. And at that time, we wanted to use a computer engine. We didn't want to reinvent the wheel from scratch. And Apache Flink was a proven technology, has been used in larger scales in companies like Uber, Netflix, LinkedIn, and had a big community and growing community. and we decided instead of building something in-house, we can actually leverage a compute engine. The problem with systems like Apache Flink or KSQL itself was operations. We were like, let's take away the complexity of operation and build a serverless environment that people can just come, write queries without having to deal with the clusters, run infrastructure and so forth. And another philosophy behind building DeltaStream was coming from S3. Thinking this way, you can take an on-prem product and run it on cloud as quote-unquote fully managed system, but still the user has to deal with a lot of complexities that you can think about them as a baggage from on-prem, like provisioning resources, how big of a cluster you need, how many nodes, and so forth. But you can hide all of those complexities and just provide a user API for the user. S3 has done that, and as you see, one of the simplest systems to use and one of the most popular systems. So that was like another philosophy behind building DeltaStream. We wanted to build a serverless platform that you don't have to think about provisioning resources or scaling up, scaling down. All of those would be handled under the hood. So that was the first step. Let's build a stream processing platform. Under the hood, we use Flink. But user doesn't have to know about like operation complexity and scaling out, scaling down, tolerance. And they just focus on building their application and we take care of everything. about like minimum viable product but of course once you had that basic functionality now you have to make it robust and production ready and that kind of aligned very nicely with the timing of the market 22 23 when we were building the platform market was not in a good place but we also were busy with building Snowflake upstream process so [0:08:06] Noah Labhart: then you've got that mvp right that first version of the product and now you're ready to you know quote unquote enterprise-ify it right or product-fy it. How did you go about that process? How did you mature it and progress it? And I think to wrap it in a box, what I'm looking for is, how did you build your roadmap? How did you go about deciding that, okay, this is the next most important thing to build or to address with DeltaStream? [0:08:29] Hojjat Jafarpour: One thing I wanted to kind of like from beginning focus on was providing a solution instead of technology. What do I mean with that is, think about a lot of times, companies talk about, hey, we can provide Spark, we can provide Kafka, we can provide Flink, and these type of technologies. of times the question is that what do you use these technologies for? What problems are you solving? And many times you may need more than one product to solve a problem. Let's say you want to build a fraud detection or anomaly detection pipeline. You need multiple systems to glue together to be able to build that solution. So what we decided from the beginning was to not focus on technology, but focus on the solution, meaning that we have this problem, we will provide the full solution of the problem. And that kind of was very much the main kind of like a factor that we would build our roadmap and what product we are going to build based on that. Let me give you an example. As I mentioned, we started with stream processing or serverless stream processing based on Apache Flink, right? So you could build streaming pipelines and stateful processing and multi-stage stream processing pipelines and so forth. But a lot of times we would see that one of the very common is that people would build these streaming pipelines, but materialize the result in a database like ClickHouse or Postgres or any of these databases, and then serve it to third-party apps like dashboards or downstream applications. And disconnect here, you are like asking users to use two technologies to build their solution. And our idea was that why should we have multiple systems if we can have the full solution in one product? So that was the motivation to add the capability of building real-time materialized views in DeltaStream. Again, under the hood, we didn't want to reinvent the wheel. We brought technology like ClickHouse to the platform, but we simplified building these pipelines and materialized views with just few SQL statements without having to deal with complex deal. Link, ClickHouse, connecting these technologies together and operating these larger scales of data. the users would come up to our platform, build the pipeline in SQL, and create a materialized view against the SQL statement. Under the hood, we connect these different technologies and make sure that everything works properly. That is like a main factor in deciding our roadmap and what we are building, which is looking at the problems that people have and trying to build solutions for those problems. These solutions may include multiple technologies, but we take care of those technologies so you can just focus on the problems to solve and solutions that you provide. [0:11:11] Noah Labhart: I hear you saying we when you're describing that. Tell me about how you built your team and what you look for in those people to indicate that they were the winning horses to join you. [0:11:20] Hojjat Jafarpour: Very much from the beginning, I myself had some skill set very much involved in building the program, but there were a lot of other skills that we needed to have. So again, that's one of those cases that I was very lucky to know people from previous life to have skill sets that would complement what I will bring to the table. One of them is our engineering lead. His name is Krishna. We were in the same lab back in grad school. And he's an ultimate experienced person in building platforms and infrastructure. He's one of the creators of OpenShift Red Hat. Red Hat. And that's one of the building blocks of this type of platforms that we built Kubernetes. And he came with a couple of his colleagues, started the platform and infrastructure. I also had other colleagues that would bring different skillset. One of them was again, my lab mate from grad school. He, at that time he was at Microsoft working on database systems and and Spark, and he joined the team for handling the SQL layers and query side of the product. So that kind of like complementary skill sets, I was really lucky to know people that have experience and been there, done that, built those systems. The important point was to have to get them together and have them work together. That was the easy part, actually, because we have a really cohesive team that worked very well together even though we started in the covet time everything was removed but overall can't be happier for the team that we built [0:13:01] Noah Labhart: let's move into scalability and this will be interesting given your your experience and what you're solving you know here with delta stream i'm curious you know has there been interesting areas with scale where you've had to fight it as you've grown i [0:13:15] Hojjat Jafarpour: would say a couple of decisions that we made from the beginning helped a lot in addressing that scalability from get-go. Of course, in the streaming space, scale and the volume of data and timeliness of processing are very important cases. The architecture that we decided from the beginning was literally built, as I mentioned earlier, based on the things that we would see in similar systems, but for maybe different purposes. In the storage case S3, for instance, you can see how easy that scales. and for compute part we looked into systems like snowflake separation of compute and storage and making sure that each of them can scale up and down independently so those were some of those critical decisions that once we made those decisions based on the experience that we have seen different systems work and also under the hood as i mentioned we use apache flink as our compute engine we built something that could easily scale up to thousands of streaming jobs problem and each of these streaming jobs can scale up and down elastically independently with isolation from other jobs. One decision that we made was to have each of the streaming jobs in isolation, meaning that we wouldn't have shared clusters or shared resources to run multiple streaming jobs. That came with a lot of interesting benefits that fine-grained elasticity, isolation, you You wouldn't have a situation that one bad job would affect other normal random jobs and those type of situations. So that first decision actually helped a lot to address the scale and elasticity and fault-tolerance situation much more effectively as the system scales out. [0:14:57] Noah Labhart: So as you step out on the balcony and you look across all that you've built, with DeltaStream in particular, what are you most proud of? [0:15:04] Hojjat Jafarpour: There are a lot of things. From the product point of view, I can say the evolution of product and the complete product that we have now, I'm very proud of it because this is like anyone who is in the field and understands these type of products. When we talk about the architecture that we have and what we have built with a very lean team, it surprises a lot of people. And I'm very proud of myself and the team and the work that we have done. Mostly team, of course, and the product that we have built. Also, I think another good kind of like property of the product that we build is that versatility. With the emergence of AI in the last couple of years, we are seeing that the platform that we build can easily be adapted or employed as the real-time context for your Gen AI applications and agents. And that can be a critical part of any infrastructure for building Gen AI applications. use of product in different contexts is one of the things that I see a lot of value in. I'm very proud of the team that we built this. [0:16:15] Noah Labhart: Let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it. [0:16:21] Hojjat Jafarpour: Not going to market sooner, in a sense that we were a little bit more perfectionist in the beginning, in a sense that we should have everything in the right way to go to market with. it. But in many cases, actually, we could go earlier and get much more feedback. And we are doing it now in a sense that we try to solicit as much feedback as possible. In the earlier days, we wanted to wait until we have more of a perfect product. So that would be a mistake. I would say if I buy again, I would try to go to market sooner and try to get more real feedback from the real or scenarios. [0:17:00] Noah Labhart: Let's move forward then. I'm excited to hear what the future looks like for DeltaStream, for the company and for the product. Tell me about that. [0:17:10] Hojjat Jafarpour: One dimension, as I mentioned earlier, is the whole AI revolution that we are seeing and the role of data and more especially real-time and fresh data in the AI applications. This is something that I have been talking about since last year A lot of interesting things that we are seeing in the world of AI the last couple of years started with models and LLMs and more like infrastructure. But now we are seeing that people are starting to build applications and agents is the magic word in this scenario. It's very important and it's very easy to position the role of fresh data for this type of scenario. Once people start building applications, the only or the main differentiator is the data that you have and how valuable or fresh that data is. And that's, I think, a very big impact that you're going to see in where we are going from the positioning of the product and how we are going to build the product in the way that it would be like a big part of infrastructure for building applications and agents in the age of AI. are. Let me give you an example. It's very easy to tell people that, would you like your agents make decisions based on one of Rico's data or what's happening right now? And the answer is very easy. We have built the whole real-time context engine prior to having the product in the sense that it can make this available for your Gen-AI agents effortlessly, meaning that they would just point to the context and that context is continuously being updated and fresh. On the next part is more like an integration. You're seeing a lot of users of analytics systems and warehouse, lakehouse systems like Databricks, Snowflake, and similar systems as good potential users for us. A lot of time, data is being ingested from streaming systems or change data capture from databases to these type of systems for analytics. So one thing that we are, we have a startup algorithm. We've announced it today on the Snowflake site. We have native integration with Snowflake now that you can actually access real-time data from inside Snowflake. You don't need to leave Snowflake. And if you're using Snowflake and familiar with the environment, now DeltaStream opens the door for access and processing and literally doing everything that you would do with streaming data from Snowflake. And we are going to do the same thing for Databricks and a couple of other systems. So this is another direction that I'm seeing that much better integration with ecosystems that simplifies access to streaming and real-time data without having to learn new systems, understanding new UI, for instance, and those type of situations. [0:19:52] Noah Labhart: Okay, let's switch to you, Hojjat. Who influences the way that you work? Name a person or many persons or something you look up to and why. [0:20:01] Hojjat Jafarpour: There's a lot of people and in different ways. I really like the style of Confluent's CEO, Jay Kreps. I used to see in front of him when the company was very small and saw how he evolved from an engineer into a CEO and running a big company. I think a lot of things that I've seen in that journey influenced my decision making too. And of course, there are many other people, but he was one of the people that I could see the decisions and impacts of them very closely and learned a lot from. [0:20:35] Noah Labhart: Last question, Hojjat. So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world. And can't wait to show it off to you right there on the plane. What advice do you give that person having gone down this road a bit? [0:20:49] Hojjat Jafarpour: There's a lot of factors that you can think about. But I would say the most important thing is the team and the people around them or her and try to build a team that he or she can trust and and delicate and work with. Because once you have a team that they have the same goal, they are on the same page, a lot of things just becomes much, much easier. But of course, once you have the team and you build the product, the most important thing is going to be customer success. The goal of building something that solves the problem for folks easily and makes them successful, that's the ultimate product that you can do. I [0:21:28] Noah Labhart: think that's fantastic advice. Well, Hojjat, thank you for being on the show today. of DeltaStream. [0:21:33] Hojjat Jafarpour: Thank you very much for having me. [0:21:38] Noah Labhart: And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. And when you get a chance, leave us a review. Both things help us out tremendously. and thanks again for listening.