# S9 E1: Building a Self-Serve CDN on Anycast with Matt Levine of CacheFly

Published: 2023-11-28
Duration: 1901s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/ed97c09d-c242-4682-81cd-0db65e2bbf9f/stream.mp3

## Key Takeaways
- Betting on Anycast: Skeptics told Matt that Anycast couldn't handle content or long-lived connections. After a friends-and-family beta of a year and a half to two years, CacheFly showed a CDN could be built on it.
- Self-Serve as the Equalizer: When Matt saw buying CDN as an enterprise-only process, CacheFly let customers sign up by credit card, with plans from $15.99 to $99. In its first three to four years, it probably had 3,000 to 4,000 customers.
- Count the Silent Users: Early roadmaps came from tickets and customer feedback. Matt learned that each complaint likely represents 10x to 100x more people with the same problem who simply leave.
- A Second Run at Self-Service: A pay-as-you-go launch swamped support with inexperienced users, and Matt wanted it off. When self-onboarding returned, the team automated features once switched on manually for enterprise customers.
- Cache Misses Matter Most: Matt says customer libraries have long been too big for CDNs to fully cache, yet bake-offs focus on cache hits. He expects CacheFly's delivery focus to be on cache miss performance.

Matt Levine grew up in Toronto, and played sports as a baseball catcher. During his teens, he got injured and had to sit out during the season. And during that time, he started to dig into computers, and became hooked. He started several businesses in High School, and later founded eFront. Outside of tech, he is married with a couple of kids, and likes top lay golf.

While working in Arizona, Matt was approached by a now competitor called LimeLight. He knew the founders, and he was approached to become a team member - specifically to help start a network. He felt that it wasn't a good time to do that - BUT, it was a good time to start and build a CDN.

This is the creation story of [CacheFly](https://www.cachefly.com/codestory).

Sponsors

- [CacheFly](https://cachefly.com/codestory)
- [ClearQuery](https://clearquery.io/codestory)

Links

- [https://www.cachefly.com/](https://www.cachefly.com/codestory)
- [https://www.linkedin.com/in/exile2k/](https://www.linkedin.com/in/exile2k/)

  

Timestamps

00:00 – Intro

07:24 – Building the CacheFly MVP

10:55 – Maturing Product and Roadmap

14:21 – Building the CacheFly Team

16:30 – Scaling the Edge Network

19:56 – Proudest Moment

20:55 – A Mistake and Response

23:22 – The Future of CacheFly

26:28 – Matt's Influences

27:59 – Advice for Young 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 Matt Levine from CacheFly: [https://www.codestory.co/episodes/s9-e1-from-turning-down-a-competitor-to-powering-roblox-and-gamestop-scaling-a-global-edge-network-without-wall-street-capital-with-matt-levine-of-cachefly/](https://www.codestory.co/episodes/s9-e1-from-turning-down-a-competitor-to-powering-roblox-and-gamestop-scaling-a-global-edge-network-without-wall-street-capital-with-matt-levine-of-cachefly/)

  
  

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
- 7:24 — Building the CacheFly MVP
- 10:55 — Maturing Product and Roadmap
- 14:21 — Building the CacheFly Team
- 16:30 — Scaling the Edge Network
- 19:56 — Proudest Moment
- 20:55 — A Mistake and Response
- 23:22 — The Future of CacheFly
- 26:28 — Matt's Influences
- 27:59 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** What does CacheFly do? — **A:** CacheFly is a content delivery network that helps customers deliver web content faster by caching copies of files in cities around the world. Matt Levine explained, "We basically offload people's typically media files, but it can be anything" [02:31].
- **Q:** How was the first version of CacheFly's CDN built? — **A:** Matt's first CDN ran in two locations, Palo Alto and New Jersey, using lighttpd on FreeBSD and a custom load balancer, with files pushed out to each site. As Matt described it, "The MVP was really just distributed web servers, syncing files between them" [10:40].
- **Q:** Can you build a CDN using Anycast? — **A:** Matt Levine set out to test this even though people said Anycast was meant for short-lived things and would break with content delivery. After building and running it in a friends-and-family beta, he reported, "And it turns out you can build a CDN on Anycast" [05:10].
- **Q:** How did CacheFly handle traffic growth during COVID? — **A:** Traffic surged while supply chain gaps, shipping delays and restricted data center access made adding hardware difficult, so the team turned to used equipment. Matt said, "We became a logistics company for two months, trying to figure out that part of scalability" [18:57].
- **Q:** Should a startup build on cloud infrastructure? — **A:** Matt Levine advises building on cloud while you are small, but planning from the start for how to move off it fully or into a hybrid setup to control costs. In his words, "you need a plan to get off of it as soon as you hit traction" [28:38].
