A team at Arkency developed an innovative testing methodology to safely rewrite a complex insurance underwriting flow in a Rails monolith. Instead of traditional test coverage, they sampled production traffic, recorded HTTP interactions, and replayed them in isolated transactions with rollbacks to verify behavioral parity. Using Ruby's metaprogramming capabilities, they stubbed external dependencies, prevented side effects, and iteratively compared results until achieving 100% parity with the legacy system. This approach enabled them to refactor mission-critical business logic within a three-month deadline while maintaining confidence and avoiding production issues.
Table of contents
The Context: Insurtech at ScaleThe Architecture: A Rails Monolith Under TransformationUnderstanding the ProblemThe Solution: Testing on ProductionThe Verification ProcessThe ResultsKey TakeawaysPrefer watching?Sort: