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

Published: 2023-04-04
Duration: 1308s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/3c531ac1-2a4a-45df-bf1c-bd80eea137e8/stream.mp3

## 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.

**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](https://planetscale.com/).

Sponsors

- [Airbyte](http://airbyte.com/codestory)
- [Doppler](http://doppler.com/codestory)
- [Host.io](https://host.io/)
- [IPInfo](https://ipinfo.io/)
- [mabl](https://www.mabl.com/codestory)
- [SupportZebra](https://supportzebra.com/)

Links

- Website: [https://planetscale.com/](https://planetscale.com/)
- LinkedIn: [https://www.linkedin.com/in/isamlambert/](https://www.linkedin.com/in/isamlambert/)

  

Timestamps

00:00 – Intro

04:18 – Building the PlanetScale MVP

05:55 – MVP Decisions and Trade-Offs

08:04 – Shaping the PlanetScale Roadmap

09:57 – Building the Team

10:57 – Scaling From Day One

12:23 – Proudest Moment

13:32 – Making Things Too Magic

15:05 – The Future of PlanetScale

16:10 – Sam's Influences

17:45 – What Sam Would Change

19:41 – Advice for Entrepreneurs

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/](https://www.codestory.co/episodes/s7-e30-the-architecture-of-infinite-scale-harnessing-vitess-and-database-sharding-with-sam-lambert-of-planetscale/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
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](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 4:18 — Building the PlanetScale MVP
- 5:55 — MVP Decisions and Trade-Offs
- 8:04 — Shaping the PlanetScale Roadmap
- 9:57 — Building the Team
- 10:57 — Scaling From Day One
- 12:23 — Proudest Moment
- 13:32 — Making Things Too Magic
- 15:05 — The Future of PlanetScale
- 16:10 — Sam's Influences
- 17:45 — What Sam Would Change
- 19:41 — Advice for Entrepreneurs

## Frequently Asked Questions
- **Q:** What is PlanetScale? — **A:** 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.
- **Q:** What is Vitess and where did it come from? — **A:** 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].
- **Q:** How long did it take to build the PlanetScale MVP? — **A:** 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.
- **Q:** Why did PlanetScale focus on how fast a database can be created? — **A:** 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].
- **Q:** What mistake did PlanetScale make in its early product? — **A:** 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.
