On Rails

Florent Beaurain: Optimizing Rails Tests at Doctolib Scale


Listen Later

In this episode of On Rails, Robby is joined by Florent Beaurain, a longtime Rails engineer at Doctolib, home to one of the largest Rails monoliths in Europe with over 3 million lines of code and 400+ engineers. They explore how Doctolib’s team tackled massive test suite performance issues, including cutting one engine’s test time from seven minutes to under one minute. Florent shares insights from managing 84,000 tests, scaling across 10 PostgreSQL databases, and maintaining Rails upgrades across a fast-moving organization using systematic approaches like dual-boot deployments and careful backporting strategies.
 
Tools & Libraries Mentioned

  • AWS Aurora (PostgreSQL) – Production database platform, scaled to 10+ writers and 15+ readers.
  • Capybara – End-to-end testing of UI flows in the monolith.
  • Capybara Lockstep –JavaScript sync layer reducing flakiness in React-driven feature specs.
  • Datadog – Application performance monitoring for production systems.
  • Docker – Local PostgreSQL and other data stores.
  • FactoryBot – Identified as a major performance bottleneck in large test suites.
  • factory_fixtures – Shopify gem extending fixtures with inline factory-style overrides. 
  • GitHub Copilot – Workflow automation and onboarding support.
  • Heroku CI – Previously used for parallelized CI builds before moving to custom infrastructure.
  • Jenkins – Original CI platform before scaling up to more powerful infrastructure.
  • Minitest – Primary test framework, used throughout the monolith with some extensions.
  • Packwerk – Used to modularize their monolith into engines with explicit boundaries and dependency declarations. 
  • PostgreSQL – Core relational database behind their production and local environments.
  • React – Primary frontend framework, integrated into the Rails monolith via a single-page app architecture. 
  • Ruby on Rails – The framework behind Doctolib’s 3-million-line monolith and most of their core product infrastructure.
  • safe-pg-migrations – Tool to reduce downtime risks during large-scale schema changes.
  • Sentry – Error tracking and

Send us a text

On Rails is a podcast focused on real-world technical decision-making, exploring how teams are scaling, architecting, and solving complex challenges with Rails.

On Rails is brought to you by The Rails Foundation, and hosted by Robby Russell of Planet Argon, a consultancy that helps teams modernize their Ruby on Rails applications.

...more
View all episodesView all episodes
Download on the App Store

On RailsBy Rails Foundation, Robby Russell

  • 5
  • 5
  • 5
  • 5
  • 5

5

9 ratings


More shows like On Rails

View all
Under the Radar by Relay

Under the Radar

211 Listeners

The Bike Shed by thoughtbot

The Bike Shed

121 Listeners

Making Sense with Sam Harris by Sam Harris

Making Sense with Sam Harris

26,377 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

284 Listeners

Y Combinator Startup Podcast by Y Combinator

Y Combinator Startup Podcast

231 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

987 Listeners

REWORK by 37signals

REWORK

210 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,002 Listeners

Remote Ruby by Chris Oliver, Andrew Mason

Remote Ruby

35 Listeners

Maintainable by Robby Russell

Maintainable

32 Listeners

All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

All-In with Chamath, Jason, Sacks & Friedberg

9,799 Listeners

Code and the Coding Coders who Code it by Drew Bragg

Code and the Coding Coders who Code it

6 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

65 Listeners

Rails Business by Brendan Buckingham & Ryan Frisch

Rails Business

0 Listeners

The Ruby AI Podcast by Valentino Stoll, Joe Leo

The Ruby AI Podcast

3 Listeners