Wiki: Scale Up the Architecture - Divergence vs. Convergence
For agents: Markdown version · Wiki index · Explore
- Speaker: Roni Cohen
- Event: Reversim Summit 2021
- Video: https://www.youtube.com/watch?v=OdcOH78KLaM
- Transcript: /transcripts/2021/16-OdcOH78KLaM.md
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: Technical Debt, Architecture, Databases, Microservices
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker discusses architectural scaling challenges when evolving a mature software system from an on-demand service to supporting pre-booking features. Initially, the engineering team chose a divergent approach by building a separate technology stack, which allowed them to move fast and validate the new product. However, as business requirements expanded and both products matured, maintaining two separate stacks created severe overhead, duplicated code, and reduced development velocity. The speaker shares practical lessons on how they eventually executed a convergence strategy, focusing on data models, feature parity, and APIs to unify the architecture and enable future scale.
Key points
- 1:27 The core product started as an on-demand dynamic routing service where users request rides instantly.
- 1:27 A new business requirement emerged to allow users to book rides in advance, known as pre-booking.
- 3:47 The team faced an architectural choice between diverging into a completely separate stack or converging into the existing system.
- 4:55 They initially chose a partial divergence, keeping some core flows shared while maintaining separate technology stacks for the booking logic.
- 8:08 Over time, the divergent architecture hit a ceiling, resulting in high overhead, duplicate feature development, and lower velocity.
- 10:23 Recognizing the unsustainable complexity, the team decided to merge the systems back together through a convergence process.
- 11:29 Data models serve as the core of the system and must be refactored and generalized carefully rather than completely rewritten from scratch.
- 16:53 Collaborating with product managers and analyzing data logs helped identify missing feature parity between the two systems.
Takeaways
- Diverging into a separate stack can help validate a new product quickly, but plan for eventual convergence to avoid long-term maintenance debt.
- Fight the instinct to completely redesign data models from scratch during a merge; instead, find common denominators and extend existing schemas.
- Engage product managers early and leverage data logs to map out feature disparities between systems.
Questions this talk answers
- When is the right time to choose a divergent architecture versus a convergent one for a new product feature?
- How do you safely merge two mature technology stacks without introducing regressions?
- What strategies can be used to handle data model discrepancies when unifying separate systems?
Tags
architecture, data modeling, legacy code, microservices, refactoring, scaling