Re-architecting a Business-Critical Pricing Engine
- Software Architecture
- Legacy Modernization
- Safe Migrations
Technology stack
- Python
- Django
- PostgreSQL
- GraphQL
Challenge
An existing pricing engine was becoming increasingly difficult to extend as business requirements evolved. The platform needed more granular pricing configurations across organizational units, sales channels and customer groups.
Replacing a business-critical component without disrupting existing operations required a carefully staged migration strategy.
My Approach
- Authored an ADR defining the new architecture and migration strategy.
- Designed a hierarchical pricing configuration model with deterministic resolution rules.
- Introduced a phased rollout with backward compatibility and rollback capabilities.
- Designed data migrations that could run safely alongside existing application versions.
- Used production data to validate migration assumptions and identify remaining dependencies on the legacy implementation.
- Reassessed the original rollout plan once the data demonstrated that the legacy engine was no longer required.
Outcome
Delivered a more flexible pricing architecture supporting granular configuration and self-service functionality.
Successfully retired the legacy engine and its obsolete database schema while preserving the existing public API contract.