Code Story · Transcripts

S8 Bonus: Rewriting Database Physics: Engineering a Hybrid Memory NoSQL Engine for Petabyte-Scale AI Inference with Srini Srinivasan, Co-Founder & CTO of Aerospike

June 14, 2023 · 25:53
Listen to the episode Download .txtDownload .vtt
Srini Srinivasan

I think the one mistake in the early days we made was we started adding features very fast. This was maybe in the 2013 timeframe. Until then we had been more measured. We got some funding, we got some people and so on, we had more resources. And we had a fairly robust way of figuring out what we needed to build. We just did too much of the roadmap too fast within an 18-month period. It ended up in a number of features being released in the 2013-14 timeframe, not complete. This caused fairly bad backlash. In fact, I would say set us back by at least a year or two and be able to recover from that. My name is Srini Srinivasan. I am the CTO and founder of Aerospike.

Noah Labhart

This is Code Story, a podcast bringing you interviews with tech visionaries. Six

Sound bite

months moonlighting. There's nothing on the back end.

Noah Labhart

Who share what it takes to change an

Sound bite

industry. I don't exactly know what to do next. It took many goes to get right.

Noah Labhart

Who built the teams that have their back.

Sound bite

The company is its people. The teams help each other achieve. Most proud of our team.

Noah Labhart

Keeping scalability top of mind.

Sound bite

All that infrastructure was a pain. Yes, we've been fighting it as a group. Total waste of time.

Noah Labhart

The stories you don't read in the headlines.

Sound bite

It's not an easy thing to achieve, mind you. Took it off the shelf and dusted it off and tried to begin.

Noah Labhart

Deride the ups and downs of the startup life.

Sound bite

You need to really want it. Not just about technology.

Noah Labhart

All this and more on Code Story. I'm your host, Noah Labhart. And today, how Srini Srinivasan built the platform for multi-models and real-time, low-latency data. Srini Srinivasan grew up in India during a time when you could go do whatever you wanted during the summer. So he explored and experienced many things, tech and non-tech. He was very into sports and competition and wanted to be a cricket superstar. He didn't start coding until he went off to college, and interestingly enough, there were many startups formed from his class. In the early days, he really loved the assembly language, which I can attest is not the norm. Srini was working in a company focused on mobile and ad tech-related work. During this time, he discovered that all database tech existing were lacking. He and his co-founder decided that they were the right pair to build a better system. This is the creation story of Aerospike.

Srini Srinivasan

Aerospike has been focused on building out a high-performance database for, I would say, real-time decision-making applications. We are especially focused in completing a bunch of, I would say, analysis on data, you know, enabling applications to analyze data in a short amount of time to make a decision. Think of it as real-time bidding in ad tech, fraud detection in financial services, you know, gaming, as well as e-commerce where huge spikes of access happens over a short period of time. a database system which can handle enormous levels of personalization for hundreds of millions, if not billions of users. And these decisions have to be made correctly and fast and with very high uptime. So if the system doesn't stay up, you lose business, basically. So that's the problem we essentially wanted to tackle when we started it. And the way we came to it, right, my co-founder Founder and I, at the time, we were working in different companies focused on mobile technologies and ad tech related work, where we discovered that all of the existing database technologies that we knew, they didn't actually work out. And new technologies were coming out almost on a yearly basis. So we decided, as founders usually do, we were a little bit, I would say, overconfident. and we said we could build a better system than anybody else. So we started Aerospike.

Noah Labhart

So tell me about the MVP, so that first version of the product you built. How long did it take to build? What sort of tools did you use to bring it to life?

Srini Srinivasan

Every story is unique, right, in a startup. The first version of it, I was not even involved, actually, because my co-founder had worked with a third person who had built some kind of caching system based on SSDs and how you could somehow do certain kinds of caches faster and better. And that project was pretty much had reached dead end of sorts. And that's when I met my co-founder of Aerospike. And he was doing this work. And I basically, after discussing with him, we came to a decision. In fact, I drove this to some extent because I am by training a database person. I have a computer science degree, an undergrad. and a PhD in computer science focused on databases from the University of Wisconsin. I looked at the core raw technology that my co-founder, Brian Blakowski, is his name, was working with, and I said, look, you know, I'm interested in this, but only if we build a true database for the long term. And Brian was down with that. And that's how we started. And then we said, okay, you know what, we're going to do this properly. We started a company. And then we wrote what we officially called 2.0, because we had already had some code base before. So we started off with the 2.0 version of the product, and we rewrote huge portions of it, obviously. The way we figured out what to build was we interviewed about 40 leaders in various industries who were all in the Bay Area at the time, in various domains, you know. And then we made some predictions in terms of which of them will be able to use a product like Aerospike. By the way, the original name for the company was Citrus Leaf, and the name was changed to Aerospike a couple of years later. But the more important thing is we looked at all these 40 or 50 interviews that we did. We organized it and discovered that ad tech was going to be the place where we could immediately find a beachhead. So the version 2.0 that we released essentially implemented features. Even to this day, it's being heavily used, not just in ad tech, but across the board. Those features were all chosen based on our interviews use and what we learned about the various domains that could use technology like ours. And then our first deployment or the proof of concept started in, I think it was almost like April or so with an ad tech company. So we had predicted it quite well. So it took us about six months, I would say, to rewrite the code from scratch again. You know, we used some, but I rewrote most of my pieces and it was all written in C. And the hard part of writing in C is you have to build your own tools. so to speak. There are no libraries that you can use like in other languages like C++ and Java, but it comes with the advantage that when you write code in C, you can write it for the purpose that it's intended without any interference, you know, from all the libraries and so on. So that's one of the reasons why our product is very carefully engineered, I would say, to produce the kind of results that our application writers love.

Noah Labhart

So you've got your MVP and it's working. How did you progress the product from there and mature it? And I think what I'm curious about there is how you went about building your roadmap and how you went about deciding, OK, this is the next most important thing to build or to address with Aerospike.

Srini Srinivasan

A lot of that decision, I think my co-founder, Brian, drove with a lot of contribution from me, of course. And the philosophy that we both of us used was very simple. the market that we wanted to approach. We would also look at our existing customers to see where the gaps were. The next step we said, you know, in an intentional way was we were going to expand it to places like financial services, telcos, e-commerce, and so on. So when we had those as targets, we were able to figure out what the gaps were in terms of what our product provided versus what additional features, functionality functionality that these particular areas. And then the good news about this is, since we were already talking with potential prospects as we were working on these new features, it was fairly easy for us to have validation in terms of like whether those people adopted it or not. We would not build a feature just for a single customer. To some extent, we were a little bit of Steve Jobs Jobs mind, you know, school of thought. Steve Jobs' school of thought is the person who builds the product has the responsibility to figure out what the market needs, and we have to build it. Sometimes people say this as, well, we know better than the customer. It's not as simple as that. We better be the experts in the field if we are to build a product which other people are going to use, which means we need to necessarily know more than any specific customer. We cannot know more than the entire market. That's kind of hard. But then that's determined by how we drive the product and how we capture the market, right? So there's a lot of thinking which goes into how we want to shepherd the product through the market, take the feedback and run it. We don't need to be told what to do. We need to figure out what to do in collaboration with the whole market and the prospects and so on. And that's the process we still follow.

Noah Labhart

Okay, and let's switch to team. You mentioned we. How did you go about building your team? And what did you look for in those people to indicate that they were the winning horses to join you?

Srini Srinivasan

If there's one thing I can say I have learned from this entire effort over the last, I don't know, it's been going on for 12 to 13 years now, is that for a software company like ours, it's all about the people. Without having the right people collaborating to solve the problem, it is virtually impossible to achieve the goals that we set ourselves up to do, right? So how do I figure out if a person is going to be successful? This is something we have wrestled with pretty much from the first hire we did. On the engineering side and the operations side, at Yahoo, I had responsibility for running the service as well as building the product, designing it, building it, testing it, deploying it, and then supporting it. So I had very good knowledge of the entire ecosystem of building something and running it in production at scale with high uptime. was my responsibility, which I had done for years. And Brian had his own set of experiences. So we knew exactly who would work out in the technical roles. It was easy for us. The harder part for us was to figure out how to get good people in sales and marketing. How do we make the entire company work well? Because it's very easy to fall into certain traps where we say, we built the product, so it must be the sales problem, because they don't know how to sell it, or vice versa. across these teams. And that, I think, meant that we needed people who were open-minded, both on the engineering side, the operation side, the support side, sales and marketing. And that is what we learned basically over time, is when we had people who are problem solvers and who are basically fearless in addressing issues without becoming defensive and so on, they're just open-minded and they engage with a level of clarity of thought, if you will. It is mostly the capability of the person as well as their ability to learn from others who are also experts in fields they may not themselves be experts in and somehow synthesize something better. And those are the kinds of people it took us in the early days, a little bit of time to find. You know, it took us a while to find the right salesperson, for example. It even resulted in me running sales for a year in the middle when we went through some of these transitions. But you've got to do what you have to do, right? as a founder and as in a startup you have to somehow get that baby to survive and grow and do whatever it takes but then you need to also get the right people on board who are able to take it to the next level and that's we've managed to do that quite well so far the most important thing that I've learned in Aerospike is about how to work with people in areas where which I'm not familiar with and learn from them and also impart my knowledge to people in the other side.

Noah Labhart

So let's flip to scalability then. So did you build Aerospike to scale efficiently from day one or have you been fighting this as you grow in any sort of capacity?

Srini Srinivasan

At the time we built the product, we could scale better than any of the existing technologies, other than custom technologies, people like, you know, Meta and Google and so on built, right? I mean, they can scale. So we're not talking about those. We're talking about general purpose products which are available in the marketplace. Places like Cassandra, Redis, you know, MongoDB, you know, Aerospike, you know, You know, Yugabyte, CockroachDB, doesn't matter. Our goal was to handle a certain kind of use case better than anybody else. And I still remember in the first deployment, the solution that we replaced, and our promise was that we would be 10 times better than the other solutions. And we will also be an order of magnitude cheaper in terms of hardware. So the order magnitude cheaper is very simple because we essentially leverage Flash for real-time data in addition to DRAM. And Flash is, by nature, the price per bit for Flash is actually much lower than that for DRAM. So we get the 10x in terms of cost very easily. But then we also 10x better in terms of performance, right? So when we ran that benchmark, we did the deployment or whatever in the first customer, they saw, it was really an interesting time, they saw 10x reduction in their timeouts. They were timing out too much. That's why they were looking for an alternate solution at the scale that they were running it. So we could easily handle that scale. And that was kind of important. But it's not a static thing. So as the systems evolve, we got new technology coming out. So we keep up with this. So we are focused on leveraging the hardware advances for the purpose of the kind of applications that are run on Aerospike. So we started off with, of course, the basic SSDs and then NVMe SSDs showed up. We basically adapted to that. We did benchmarks. We worked with all of the vendors to make sure that that was successful. Micron, Intel, pick the vendor. Samsung, for example, we worked with all of them to make those technologies work for our applications. applications. We also worked with Intel's Optane persistent memory. We had a version for that. We were early with that. You know, we work with cloud vendors today. The result is there has been no customer who has started on Aerospike who has needed to go to another platform. So you don't really need to replatform in the kinds of use cases that we do, even though your scale is going up 10x, 100x. Many of our customers have gone up 10x or 100x in their scale over the last 10 years. Early customers have been with us for 12 years in deployment, for example. And this is both an original goal, because I think the original pitch that Brian and I would make is, if you want to get to Google scale without spending the kind of money Google's spending on this, then you've got to use Aerospike, because that's the only way you can compete.

Noah Labhart

So, as you step out on the balcony and you look across all that you've built,

Srini Srinivasan

The single most important thing I really appreciate is that so many of our customers depend on Aerospike for the most mission critical of applications. Essentially, they have bet their business on Aerospike. A small company, you know, from day one. These are the applications which run billion dollar enterprises. prices. That is on the business side is what I think I'm most proud of what Aerospike has accomplished so far. We have a reputation for working in these use cases and we do our best to support customers as they go through their inflection points, right? So that is the, on the business side, that's the most I'm proud of. On the other side, our collaborative way of working Working has enabled us to come up with solutions to really hard problems. And that's actually built up a really good team culture, which enables us not just to do a better job, but also to work well with customers to help them achieve their goals. Those are two things I would think stand out to me.

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.

Srini Srinivasan

I think the one mistake in the early days we made was we started adding features very fast. This was maybe in the 2013 timeframe. You know, until then, we had been more measured in terms of what we had added. But then we got some funding, we got some people and so on. We had more resources. And we had, as we spoke earlier, a fairly robust way of figuring out what we needed to build, you know, in terms of the roadmap. We just did too much of the roadmap too fast within an 18-month period. in a number of features being released, you know, in the 2013-14 time frame, many of which were not complete. This caused fairly bad backlash. In fact, I would say it set us back by at least a year or two to recover from that. That's definitely one of the mistakes we did, which I don't think we've done since then, obviously, because it hurts.

Noah Labhart

This will be fun to talk about. What does the future look like for the product and for the team?

Srini Srinivasan

I've worked in database technology for a long time. So I kind of know it is very hard for an enterprise to use a product for long periods of time because they don't necessarily satisfy their needs. Now, if you look at the most successful database products in the world, they have been around for several decades. So you pick an Oracle, you pick a mainframe, an IBM DB2, whatever, you end up using that technology for at least a 20 to 25-year period. view. What I'd like Aerospike to be is basically achieve that milestone. That is, it will be the product people pick, you know, instead of picking a mainframe, which is kind of technology, which is not necessarily evolving to the modern world. But we can work on cloud, we can bring the same level of robustness to running mission-critical applications that people will pick Aerospike for a couple of decades, right? That is, to me, the most consequential thing that we can bring to the table as a database for a new class of applications. That is definitely really important. On the business side, what I would like to see is Aerospike essentially come into its own, so to speak, in terms of managing its business, being a master of our destiny, and figuring out how we can apply this technology in more and more areas broadly to impact industry in even in large measure, so to speak, right? In terms of providing that level of insurance, if you will, so that the various applications that are scaling up don't hit any kind of technology limits if you use Aerospike, so that they can grow their business and compete in the marketplace in the best way possible. And that will essentially lead to Aerospike, I think, growing to a revenue of $100 million or $1 billion a year. That's kind of the business goal, actually, for the company.

Noah Labhart

Okay, so let's switch to you. Who influences the way that you work? Name a person or many persons or something that you look up to and why.

Srini Srinivasan

I've been fortunate in the database community in Wisconsin where there were so many leaders. I remember when I was doing my PhD there, there was a program, you know, the program in Wisconsin was run by Dave DeWitt and Mike Carey. You know, these are like very accomplished database researchers and technical leaders in the field. And they would invite all of these people to come and talk about various technology challenges and research challenges. You know, these are all like the database field. And there were similar kind of programs elsewhere, I'm sure. I was in Wisconsin, and this affected me a lot. So I definitely wanted to impact the field. Now, the interesting thing is there were some people who were into research that were impacting it quite well and so on, but there's one person who stands out. It happens to be Mike Stonebraker, who is the PhD advisor for my advisor. So Mike Carey's advisor was Mike Stonebraker. Stonebraker actually won the Turing Award in 2015, I believe. people. The thing I took away from Professor Stonebraker was something very simple. He was a researcher at the highest level, if you will, one of the most accomplished researchers ever in systems, which is what excited me. It's all about systems. I see programmers love system software. Mike Stonebraker actually built companies. Not only did he research, he's founded like seven or eight database companies. Most of them have been successful. They have built products, They have shipped them and so on. So I would definitely want to do something like that. Basically build a product, sell it to all the enterprises, and see how good we are. So that's definitely a huge inspiration. The other one is Don Haderle. He is the father of DB2 at IBM. I worked with Don in IBM. He was kind enough to spend time with me. I was very young then and a lot more, I would say, impulsive. And in fact, I left IBM and went to startups and so on. But I've always kept in touch with Don because Don had a certain attitude. He knew how to start from nothing, which is kind of what he did at DB2, and build a product and sell it into the industry. Even though it was at IBM that he did it, he operated like he was in a startup. And having worked in startups afterwards, I always realized that Don was doing inside IBM what people were doing outside IBM in startups. So he's an advisor to us at Aerospike. He was the first person I actually called when we started Aerospike. will share with me his knowledge about how these stages of a product goes through and link it to what we are going through. So it gives me a level of confidence that we're probably not screwing up, you know, because that's one of the worries you always have.

Noah Labhart

Okay, we talked about a mistake earlier, but this is a little different spin. If you could go back to the beginning, what would you do different? Or where would you consider taking a different approach? Could have been something that worked, even worked pretty well, but maybe you'd tweak it a little bit.

Srini Srinivasan

We underfunded the company in the early days. We would probably have gone for bigger funding rounds earlier in the game so we could compete more effectively in the marketplace on the non-technical aspects of things like marketing and so on. I think that has definitely been one of the things I would definitely change. Otherwise, I think there are a lot of things. I mean, the other thing I would change is be more careful about adding new features. would be a little bit more circumspect. And we, of course, have learned it. That is less of, I think, of an important issue than the funding. Because if you have more funds earlier in the cycle for a startup and you use them wisely, it reduces risk in the long term. So that'll probably be my single most important thing is to get more funds earlier into the company.

Noah Labhart

Last question. So you're getting on a plane and you're sitting next to a young entrepreneur who's about the next big thing. They're jazzed about it. They can't wait to shut off the world. right there on the plane. What advice do you give that person having gone down this road a bit?

Srini Srinivasan

The key thing about doing something new is it requires a level of passion that allows you to overcome the hurdles. So the first thing I would say is stick with it. And the second thing is going to be a little contradictory. Evaluate it all the time to see if it is still the right thing to do. So both of them go together. You got to keep re-evaluating that this is the right thing beyond all reasonable levels of objection to it, okay? Because there were people who came to me and Brian and said, you know, I'm a guy who always encourages people to do stuff, new stuff, but for you guys, you shouldn't do what you're thinking of doing. And we're looking at it going, what's wrong with us? We took a really hard problem to solve. You know, everybody was telling us to do something else. But our view was, hey, we can do this. We know other people are not doing this, but we're capable of doing this. You need to really know that. You need to know that you can do it, even if the whole world says you can't.

Noah Labhart

I think that's fantastic. Well, Srini, thank you for being on the show today. Thank you for telling the creation story of Aerospike.

Srini Srinivasan

Thank you, Noah. I appreciate all your questions.

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.

Transcribed with Whisper and reviewed for names and terms; speaker labels are automatic and may contain small errors. Timestamps link to that moment of the transcript.