Wiki: Going Full Rewrite - The Incremental Way

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

The speaker discusses the challenges and strategies of rewriting large legacy software systems, arguing that full rewrites from scratch often fail. Instead, the speaker advocates for an incremental approach that combines breaking down the system, gradually migrating users, and migrating features iteratively. Through real-world examples from their own experience, the speaker shows how building safety nets and aligning with product goals helps minimize production risks. Ultimately, the audience learns how to modernize legacy systems safely while continuously delivering business value.

Key points

  • 1:05 The speaker shares a past failure where a complete system rewrite was abandoned after six months because product managers realized it would take two years to add features.
  • 4:18 Full rewrites typically fail due to underestimated timelines, lack of immediate value for customers, and the loss of accumulated organizational knowledge and edge cases.
  • 6:28 A full rewrite is justified only under specific conditions, such as extremely outdated technology, rapid product growth, or when adding simple features becomes overly difficult.
  • 7:32 To get buy-in from leadership, developers must identify organizational power dynamics and align technical goals with the pain points of sales, product, and engineering.
  • 9:45 The speaker introduces three axes for incremental migration: breaking down the system into sub-systems, migrating users gradually, and migrating features iteratively.
  • 14:06 The first rewrite tackled the call management system by replacing an in-house setup with an open-source tool and microservices, migrating users in stages to improve call stability.
  • 21:32 The second rewrite focused on account data, using production-level validation and automated diffing between the legacy and new systems to catch edge cases safely.
  • 24:46 To make the new system the single source of truth, teams must couple architectural work with business changes that naturally incentivize other internal teams to adopt it.

Takeaways

  • Avoid big-bang rewrites and instead modernize systems incrementally using sub-systems, user migration, and feature migration.
  • Secure executive and product buy-in by aligning technical debt solutions with real business problems and metrics.
  • Implement robust safety nets, such as dual-running systems and automated data validation in production, to catch missed edge cases.

Questions this talk answers

  • How do you migrate a large legacy system without disrupting existing users?
  • What are the best strategies to convince product managers and executives to invest in a system rewrite?
  • How can you ensure data consistency between a legacy database and a newly designed database during a transition period?

Technologies

AWS, FreeSwitch, CCXML

Tags

architecture, legacy systems, microservices, migration strategy, refactoring, system rewrite, technical debt