Rewrite with confidence
summary
Three-month rewrite replaces a legacy underwriting flow for one product line by treating existing behavior as the spec and validating business rules end-to-end. The team samples 1–2% of live quotes, records snapshots of quote state plus HTTP traffic via Typhoeus and Net::HTTP, then runs the new make_quote flow inside a rolled-back transaction with record-and-replay HTTP stubs stored in an ActiveRecord table, compares before/after snapshots, and iterates until differences vanish, then ramps out behind feature flags with no rollback needed.
AI-written summary · about
chapters (12)
- 0:00Introduction to confident rewrites
- 2:14Legacy system challenges
- 4:46Project constraints and scope
- 7:13Insurance flow basics
- 9:19Data model and state issues
- 11:06Overcoming unknowns with sampling
- 13:19Testing on production safely
- 16:14Recording HTTP interactions
- 18:24Verifying new flow behavior
- 22:45Gradual refinement process
- 25:37Project outcomes and feedback
- 27:07Q&A session
