We always have to do things to kind of unlock customers' usage of the scale, but when the product has already run, what, the third, fourth largest website on planet Earth, scale's kind of in the bag. We're actually scaling down at this point. We're trying to scale down tech that has run at the most extreme scale and make sure that everyone can use it. We're bringing it into the hands of everybody, which is kind of a different challenge. Other database companies, when they take on their biggest customers, it's a real risk. They really have to make sure they can manage that scale. We kind of have the opposite, where it's like, well, as long as you stay smaller scale than YouTube.com, I think we've got you covered. Hi, I'm Sam Lambert, CEO of PlanetScale.
this is Code Story the podcast bringing you interviews with tech visionaries the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host Noah Labhart and today how Sam Lambert took an incredible set of tools and built the world's most advanced serverless MySQL platform. All this and more on Code Story. Sam Lambert is originally from the UK and has lived quite a few places during his life. He went to school in India, but now resides in San Francisco. He finds software to be a creative, playful process, and sees people trying to build that away from the process. He feels very lucky to be building something that provides fruit and solves problems. Outside of tech, he's married with a four-year-old and is into cooking and art. I asked about NFTs, giving his tech background, but he's not super into that form of art at this time. Sam spent time working at GitHub as a VP of Engineering, specifically focusing on infrastructure. He and his team came across Vitess, the backend that ran YouTube. And he took this amazing framework into his current venture to remix their approach of design and scalability. This is the creation story of PlanetScale.
PlanetScale is a cloud-hosted database platform. We host major, major websites and workloads on our platform. We are known for being able to take databases and the applications that run on those databases to extreme scale. So our backend is technology, Vitess, which was developed at YouTube. They were running it till about two and a half billion monthly active users, running on tens of thousands of servers. So huge scale. And then the project kind of spun out of Google, picked up by Slack. Yeah, all of these, just so many great tech companies started running on Vitess and contributing to Vitess. And Slack blogged about it. Slack had a blog series come out this week about their use of Vitess. And then we started using it at GitHub, and I was at, I was at GitHub. I was one and, you know, specifically I focused on infrastructure and I was also the first database engineer to ever join GitHub and I've spent a long time, nearly 15 years now, in databases. We came across Vitess. It did exactly what it was supposed to do, incredible technology. And then I eventually found my way to PlanetScale. And, you know, we kind of took a bunch of the folks that came from GitHub alongside me and we rebuilt the kind of the cloud product to really remix and mix the DNA of this incredibly scalable backend database and the presentation form function and style of GitHub or at least GitHub's design philosophy and how we build for developers. So this team that's here, you know, we built a platform that has a hundred million developers on it, something that has never been done before. And we're applying that to running a database. So, you know, going back to what the product does, I mean, it's kind of the best database you could pick on day one of your company. And it is proven and does run the back end of many public companies. And so there's not really a data other database out there that kind of claim or can claim to be exciting and innovative and work for developers at any scale. And that's really what we're about.
Let's dive into the MVP then. So this will be interesting to see where this started. How long did it take you to build and what sort of tools did you use to bring it Vitess, but give me a little more there.
So we had Vitess. Vitess runs on Kubernetes, is extremely mature. So that was a really good starting point. The MVP for the cloud product that many, many thousands of people use now, we actually went from first line of code to out in beta was less than six months. And we did that not only by picking tools that were familiar to us, but also taking a development philosophy and the way we developed was extremely iterative. We would have a demo of what we were doing every Friday. Monday, we would pick what we were doing next and then demo again on Friday. And we just had this quick cadence of ship, learn, ship, learn, ship, learn. And we still do the same. We deploy and ship many, many times a day and get changes and great things out in front of our users constantly. us all being used to working in GitHub's culture, which was sometimes hundreds of deploys a day. And so the kind of tools we use, well, the stack is Ruby on Rails for the API that powers the web frontend. The web frontend is a Next.js app. And then in the backend is a lot of Go. Vitess is one of the oldest Go applications in the world, or it's still going. And having those kind of separations and layers means that we can iterate in just different parts of the stack really, really quickly.
Okay, let's stick on the MVP for a second. So when you're building any MVP, you've got to make certain decisions and trade-offs, right? And probably around tooling that you chose, there were some decisions and trade-offs or limiting how you approach the first problem. Tell me a little bit about those and how you cope with those decisions.
Well, we thought really hard about what a database is there to do. One, it's there to obviously do the fundamentals, data, give you access to your data, be available, be scalable. Vitess has handled all of that. That, you know, Vitess makes it seem easy. It's not, but, but does do that. When it came to the MVP of the whole cloud product, one of our first key insights is like when someone signs up to a cloud product, they have an idea in their head. They have a thing that you're in the way of them building the next stripe or whatever. You know, they've got this incredible idea in their head. They want to get going. I went and I looked at a load of other database platforms and I looked at how database and one of the kind of formerly hot kind of database companies at the time was like 24 minutes and I was like that's ridiculous I mean I would have forgotten what my idea is by 24 minutes so the first thing we did was decide we're going to be the fastest place to deploy a database we got it down to almost practically instant. And actually Lee Rob from Vercel did this YouTube video very early in our life as a company measuring like 20 different database companies to getting a database and we were fastest, we were number one. And that made me very, very proud. And that took trade-offs, right? Like, you know, you have to do things, you have to have warm pools of machines ready. You have to deliberately care about that. And it was interesting to me that no other cloud database had cared about that before. We were coming into the market focused on developers. And people would say to us, I care so much about like creating a database so quickly. It was really telling that the other companies don't do that. And I think it's because they don't quite understand are using their product for. And so we really thought about this and thought about how developers would use the product and it kind of very much influenced how we did things in the early days.
From that point, you got your MVP. How did you progress the product and mature it? And I think to wrap that question in a box a little bit, what I'm looking for is, how did you go about building your roadmap? What process did you follow or what sort of things did you include to decide, okay, this is the next most important thing to build for PlanetScale?
We listen to customers. First of all, customers are so important. We listen to everyone that will give us feedback. Now, do we do everything people say? No. We have a very strong opinion. We take very strong opinions how databases should be operated, what they should do, and so we also just have our opinion. We have experience using databases, operating databases at scale. So we reflect a lot on what our users are looking for and what they need, and then we discuss it. centralized planning where everyone goes and gets their opinion. You know, we have a small group of people sit down and discuss at length the problems that we face and our users face, and really dial into what they need. And then you do the classic thing with roadmaps. You look at what will move the needle the most and is easier. You look at what things are just going to naturally take a very long time, so you need to get going on those, and what pieces unlock other pieces. And you kind of tease it together. And we don't build long roadmaps. There's a few things we're now that will probably be a year long. If you're building and releasing a database that runs a significant chunk, like chunk of the internet, you have to be very careful and deliberate about making those changes. So working on those, but everything else of the kind of the surfaces, the area which is the team, that there's the name of the team that actually manages all the surfaces that humans interact with, those we iterate on quickly and we really build that quarter by quarter, because I just don't believe you can build long roadmaps and be right. We just take a very iterative approach. approach, look at what's working, measure whatever worked, and then take the next iteration.
Okay, let's switch to team then. So 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?
I looked at everyone, all of the fantastic people I'd worked with in the past, and kind of started trying to convince them one by one to join the company. And then they knew people from other companies that came along. Our philosophy at PlanetScale is that we want to have a very small team of incredible people. We have a very deliberate performance culture and that kind of creates this flywheel of just more and more great people trying to kind of bring each other and attract each other to the company. It's not an easy way to run a company always. It takes diligence, it takes really thinking about what performance and being effective at a company is. But yeah, we build it by just looking for absolutely the best folks. I mean, there's some world leading in their field and it's great it's a really easy way to do things as well when you just attract kind of amazing people to your company and give them lots of freedom and hard problems to solve it kind of works from there
okay this will be fun to ask giving given the nature of your product and the description of the tools you're already using but i'm going to ask it a little bit blindly and let you just run did you build this to scale efficiently from day one or Or are you fighting this as you grow in any capacity?
We always have to do things to kind of unlock customers' usage of the scale. But when the product has already run, what, the third, fourth largest website on planet Earth, scale's kind of in the bag. We're actually scaling down at this point. We're trying to scale down tech that has run at the most extreme scale and make sure that everyone can use it. We're bringing it into the hands of everybody, which is kind of a different challenge. Other database companies, when they take on their biggest customers, it's a real risk. They really have to make sure they can manage that scale. We kind of have the opposite. We was like, well, as long as you can sort of wryly say to customers, as long as you stay smaller scale than YouTube.com, I think we've got you covered. So yeah, I mean, we are about scale, but working at any scale, scale for anybody, no matter where they are in their business life giving them a simple and smooth graduation path from having no users to having billions of users.
You would be the first person I've had on the show that have said, we're actually trying to scale down from something that has already been built for that type of scale. It's super cool.
Interesting problem, right?
Absolutely. Okay, so as you step out on the balcony and you look across all that you've built, what are you most proud of?
I try not to be too proud. I think I'm most proud of the team. you know we all find faults and flaws you look at the product and you're like oh I liked that six months ago now I did it it just happens right you have to keep moving forward no one else is gonna make your product better for you so we try I try not to be too proud I think the most proud of the team just a really great set of people that are incredibly talented and very chill and funny and fun and well-spirited and I love coming to work and working all with all these these people. So I think probably the team, and then next is like opening, opening up multiple apps that are in the, like, top 50 of the App Store that I have on my phone and use, like almost daily, and knowing that the backend is PlanetScale on our cloud makes me also very, very happy it's just this incredible thing to know that your product is just working and having impact and and getting people excited
Well, let's flip the script a little bit. So tell me about a mistake you made and how you and your team responded to it.
In the early versions of the product, and we still haven't fully corrected this, I think we made some things a bit too magic. That sounds a bit kind of self-congratulatory. It's really not. Magic is not really something you should try and convey, especially in an infrastructure product. But I think we hit a bit too much of what's going on underlying, right? very extremely clean. Like you don't even see the word server in our UI, right? Even though you can provision, like there's people running it with like thousands of them behind or whatever, right? I think we made it very, very simple. Sometimes that gives people a sense that there's not this heft to the product, right? Like, you know, it's kind of, you go in a Tesla and it's a little bit too empty for me. It just doesn't feel too stark. And I think we oversimplified some of the product and now we're kind of trying to really thoughtfully add some more of surfacing what's going on under the hood and making it not scary not something they even have to care about but something that they're aware of that we're doing things for them rather than it just being this kind of magic box that kind of just scales and expands i think we need to show people a little bit more of what's going on with the on under the hood so we're not we're not we haven't solved that fully but it's something we're kind of working on right now that's kind of one of the top of mind things with the product.
Okay, this will be fun. So what does the future look like for the product and for your team?
I mean, first of all, it's really exciting. Like we're having, we're enjoying ourselves, right? We're kind of onboarding customers. We're building a product that people like. Right now, you know, we're migrating two of the top 200 websites over to PlanetScale on our cloud platform. work, but it's good work. We know the technology will work for the customer. So that's one thing that's very kind of very exciting, really. Like the future is keep helping customers win, make them successful, keep building a product that people love, don't overdo it, don't crowd the product, get it just right, keep dialing in, keep talking to customers. We've got some more revolutionary products that are coming. We've just shipped PlanetScale Boost. That's getting ready to go GA and get into more and more people's hands. And so that's another kind of exciting evolution and starts to really speak to the power of our backend tech. And we're going to just keep building and hopefully keep delighting users with some sort of very special pieces of new technology that people haven't seen before.
Okay, let's switch to you, Sam. Who influences the way that you work? Name a person or many persons or something you look up to, and why?
A lot of different people I look up to. I tend I tend to take influence not from any one individual because we're all different. We're all good at certain things. We're all deeply flawed in some ways. For me, it's I kind of take inspiration from achievement that groups of people have made and products that people have built or things that are exciting or things that are compelling. So, yeah, I don't really look to being like anyone type of person. I kind of just want to build great things like others have built great things. For example, it's a bit cliche, but Apple products are something that kind of kicked off my love of computers. The bicycle for the mind. These incredible devices that can be presented so evocatively and so beautifully and cleanly, I've taken inspiration there. I take inspiration how you can take deep technology like LiDAR, hard technologies, and embed them in a phone so that people can unlock it just by looking at it, right? And then this technology is hidden behind a single hard to break glass screen. So this kind of engineering that presents deep and complicated engineering so beautifully and simply and powerfully and impacting so many people. So it's like kind of products and, and things like that have changed people's lives and that, that are the result of humans and different types of humans collaborating in unison to build really, really inspires me.
Okay. So we, we talked about a mistake earlier, but a little bit different spin. been? If you could go back to the beginning, what would you do different? Or where would you consider taking a different approach? It doesn't have to be a mistake. It could have worked really well, but you tweak it a little.
At first, we kind of hid a little bit that we were a MySQL database. Not too much. We didn't exactly push it forward. There's just a massive amount of MySQL databases out there in the world that need modernization and need a modern platform. So I think we would have gone out a bit more boldly about being that. We weren't very serverless, very much just being talking about that we are the best way to kind of scale my SQL databases. Yeah, I think we would have done that potentially differently. I don't know, though. It could have been a different history. But there's like a lot of other data, you know, Postgres community, Postgres databases, or whatever, kind of are out there and apparently quite cool. And so, yeah, I think we were a little bit maybe embarrassed, but now, now, absolutely not. I mean, we're very proud of the way we've built our technologies and what it's doing for people and the fact that we're moving lots from form. Really happy with that. Maybe wouldn't have, maybe would have done that differently, but not, it's not clear. I very rarely regret anything. I think it's a quite useless emotion. I mean, you learn you should just learn your lessons very quickly and move on that's all you know i mean you should break decisions down into as small chunks as you need and then just treat it almost like a shotgun blast if it goes in the right direction you'll hit it right and you'll get it done. People who lump together giant decisions to be made will fail because no one is right all the time. You have to be kind of directionally correct and then make lots of decisions very, very quickly. And then no one big decision matters. It's about the small, undoable or, you know, decisions that can just change and move around. And so like, yeah, that's how we do it. which is small iterations.
Well, last question, Sam. 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. 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?
Pick good technologies. I know that sounds self-serving, but having scaled now a number of companies, picking bad technologies is way more consequential people realize. I know people talk about just get it done, go early, ship. Definitely. More important than that is getting something in users' hands. But now with the kind of new era of serverless and cloud and the way things are, you can pick incredible technologies that will serve you for nearly the entire life of your company and you can pick them on day one. That's amazing to get that right. Because if you get it wrong and your competitor gets it right, it could be the difference between them winning and you failing. Constantly understand your users. And And if it's an early company, don't rush. The early stage when you have like a small group of users that you have constant contact with and you can iterate with is the most in touch you'll ever be with your product. Use that time very wisely. Enjoy it and be diligent and learn and really learn your audience because it's a lot harder to do in the abstract. It's a really special time to be there doing it.
Fantastic advice. Well, Sam, thank you for being on the show today on the creation story of PlanetScale.
Thank you for having me. It's been really awesome to be here.
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.