Florent Beaurain: Optimizing Rails Tests at Doctolib Scale episode artwork

EPISODE · Oct 7, 2025 · 1H 18M

Florent Beaurain: Optimizing Rails Tests at Doctolib Scale

from On Rails · host Rails Foundation, Robby Russell

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 MentionedAWS 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 visibility tool integrated into their release workflow.Webpack Dev Server – Used locally to support React development alongside the Rails app.Send us Fan MailOn 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.

Episode metadata supplied by the publisher feed · Published Oct 7, 2025

Embed this episode

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

Distinct summary based on available episode metadata or transcript content.

Ready to play

Florent Beaurain: Optimizing Rails Tests at Doctolib Scale

0:00 1:18:09

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of On Rails?

This episode is 1 hour and 18 minutes long.

When was this On Rails episode published?

This episode was published on October 7, 2025.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this On Rails episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!