# S10 E13: Scaling Chess.com Through Viral Traffic Surges with Josh Levine

Published: 2024-12-10
Duration: 1886s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/7e2d295b-d38d-46b2-b165-c8408bd6b9e8/stream.mp3

## Key Takeaways
- Surges Forced Deep Re-Architecture: COVID lockdowns drove a 4x traffic spike, and The Queen's Gambit brought another. Before Josh joined, the team sharded databases, moved to application-layer joins and added bigger hardware.
- The Modular Monolith: With no time to fully decompose its PHP monolith, Chess.com routed certain paths to separate Kubernetes node pools, so an overloaded area wouldn't take down the rest of the site.
- Work Streams Create Visibility: Developers each had 60 to 70 assigned Jira tickets. Grouping features into work streams, with a tech lead and PM and Notion specs mapped one-to-one to Jira Epics, clarified priorities.
- Engine Analysis Grew Up: Game analysis began on eight Stockfish engine nodes regardless of demand. Josh thinks it now has 9,300 cores, and it can dynamically spill into the cloud.
- Test Scale Gradually: After a year of performance tuning, a homepage banner dared users to crash the server, and they did. Josh says a feature flag or a percentage rollout would have been wiser.

Josh Levine lives in Brooklyn, NY. He started programming when he was 6 years old, when his Dad brought home an Apple 2. He realized that though there wasn't enough legos in the world to support his creativity, he could get enough RAM. Growing up, he had a deep relationship with chess, setting up his own chess program. In fact, he states that he learned everything he knows about programming - by programming chess. Outside of tech, he is married with 2 kids. He loves karaoke, and is a musician, with his music online under the name Heavy Pennies.

In 2011, Josh joined an amazing online game website, when they started supporting his favorite game variant. Ten years later, he researched this company and their technology to see how it worked. He applied for one of the jobs, got rejected, but then quickly got a call from the CEO, who liked his application.

This is Josh's creation story at [Chess.com](https://www.chess.com/).

Sponsors

- [PropelAuth](https://www.propelauth.com/)
- [Speakeasy](https://speakeasy.com/codestory)
- [QA Wolf](https://www.qawolf.com/)
- [SnapTrade](https://snaptrade.com/codestory)

Links

- [https://www.chess.com/](https://www.chess.com/)
- [https://www.linkedin.com/in/levinester/](https://www.linkedin.com/in/levinester/)

  

Timestamps

00:00 – Intro

07:05 – First Projects at Chess.com

10:43 – Maturing Process and Roadmap

15:41 – Building the Chess.com Team

17:42 – Scaling Through Viral Surges

24:39 – Proudest Moment at Chess.com

26:17 – A Mistake and Response

27:23 – The Future of Chess.com

29:17 – Influences on Josh's Work

30:04 – 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 Josh Levine from Chess.com: [https://www.codestory.co/episodes/s10-e13-the-scale-to-30-billion-era-re-architecting-postgres-and-managing-viral-traffic-surges-for-the-worlds-largest-gaming-community-with-josh-levine-cto-of-chesscom/](https://www.codestory.co/episodes/s10-e13-the-scale-to-30-billion-era-re-architecting-postgres-and-managing-viral-traffic-surges-for-the-worlds-largest-gaming-community-with-josh-levine-cto-of-chesscom/)

  
  

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 Stacklist! [https://stacks.codestory.co/](https://stacks.codestory.co/)

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

Hosted by  [Noah Labhart | Technical Founder & Startup Mentor.](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:05 — First Projects at Chess.com
- 10:43 — Maturing Process and Roadmap
- 15:41 — Building the Chess.com Team
- 17:42 — Scaling Through Viral Surges
- 24:39 — Proudest Moment at Chess.com
- 26:17 — A Mistake and Response
- 27:23 — The Future of Chess.com
- 29:17 — Influences on Josh's Work
- 30:04 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** How did Chess.com handle the traffic surge during COVID and The Queen's Gambit? — **A:** Josh Levine explains that before he joined, lockdowns and then the Netflix series each drove traffic up 4x. The team had to shard databases "and switch to application layer joins and get new hardware" [18:41].
- **Q:** What is Chess.com's modular monolith approach? — **A:** Josh says the team used Cloudflare and other routing tools to send certain paths to dedicated resource pools in Kubernetes, isolating failures from the rest of the site. The reason was practical: "We didn't have time to decompose all the different services," [21:45].
- **Q:** What technology and databases does Chess.com run on? — **A:** Josh describes a PHP monolith using Symfony, alongside a Java server for live chess, with some services since moved out of the monolith. On the data side, he mentions a "monolith with vertically partitioned MySQL databases. I think there's like 21 clusters." [14:58]
- **Q:** What happened when Chess.com dared users to crash its server? — **A:** After shipping a lot of performance tuning, the team ran a homepage banner inviting people to try crashing the server by playing live chess, and it crashed. Josh admits, "We were a bit brazen. But yeah, we crashed the server largely due to hubris, our own hubris." [27:13]
- **Q:** How does Josh Levine approach building engineering teams? — **A:** Josh puts caring for people first, with reliable cadences where they can share knowledge, find support and raise frustrations. As he puts it, "I would say relationships lead to knowledge leads to projects is the main approach that I took to building team." [17:06]
