New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S7 E30: Scaling Databases on YouTube's Vitess with Sam Lambert of PlanetScale
Apr 04, 2023 21:48 S7 E30

S7 E30: Scaling Databases on YouTube's Vitess with Sam Lambert of PlanetScale

0:00 / 21:48

About this episode

Vitess at scale: Sam Lambert of PlanetScale on the sharding technology from YouTube and developing a serverless MySQL platform around it.

———

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 building something that provides fruit and solves problems. Outside of tech, he is married with a 4 year old, and is into cooking and art. I asked about NFT's, given 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.

Sponsors

Links

Times are from the episode recording; ad breaks in your player may shift them a bit later.

Read the key answers from this episode, with quotes and timestamps from Sam Lambert from PlanetScale: https://www.codestory.co/episodes/s7-e30-the-architecture-of-infinite-scale-harnessing-vitess-and-database-sharding-with-sam-lambert-of-planetscale/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



Our Sponsors:
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai
* Check out Perplexity: https://pplx.ai/codestory


Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

Key Takeaways

  • Scaling Down Proven Tech: PlanetScale's backend, Vitess, ran at YouTube's scale. Lambert says the challenge is bringing it to everyone, with a smooth path from no users to billions.
  • Beta in Under Six Months: Starting with mature Vitess, the team built the cloud product with Friday demos and Monday planning. The stack pairs a Rails API and Next.js frontend with lots of Go.
  • Database Creation Speed First: After seeing one database company take 24 minutes, PlanetScale made provisioning almost instant. That meant deliberate trade-offs, such as keeping warm pools of machines ready.
  • Too Much Magic: The UI hid so much, even the word "server," that some users may not sense the product's heft. The team is now working to surface more of what happens under the hood.
  • Short Roadmaps, Careful Core: Surfaces people interact with are planned quarter by quarter and iterated quickly. Some deeper database work may take a year and demands care and deliberation.

Frequently Asked Questions

What is PlanetScale?

Sam Lambert, CEO of PlanetScale, describes it as a cloud-hosted database platform that runs major websites and workloads on a Vitess backend. In his words, "We are known for being able to take databases and the applications that run on those databases" [02:25] to extreme scale.

What is Vitess and where did it come from?

Vitess is the database technology behind PlanetScale, developed at YouTube and later picked up by companies including Slack and GitHub. Lambert says of YouTube, "They were running it till about two and a half billion monthly active users" [02:37].

How long did it take to build the PlanetScale MVP?

Lambert says the cloud product reached beta in less than six months, helped by mature Vitess technology, familiar tools and weekly demos. As he put it, "we actually went from first line of code to out in" [04:38] beta in that window.

Why did PlanetScale focus on how fast a database can be created?

Lambert argues that someone signing up has an idea they want to build, and a long wait gets in the way. He said, "the first thing we did was decide we're going to be the fastest place to deploy a database" [07:02].

What mistake did PlanetScale make in its early product?

Lambert says the team oversimplified parts of the product and hid too much of what was happening underneath. He admitted that "we made some things a bit too magic" [13:44], and said they have not fully corrected it yet.

Media List 5000, Podcasts, Fall 2026