Eliminating a Bottleneck in a Distributed System Architecture
Adrian Żurkiewicz
Published
The system was based on a custom-built web application supporting sales processes, integrated with a geographically remote ERP system. The architecture caused significant data retrieval latency and instability during periods of increased user traffic.
Problem
- High communication latency with the ERP system
- ERP overload during peak traffic generated by the sales application
- Risk of web application downtime and degraded end-user experience
Constraints
- No possibility to modify the ERP system (technical debt)
- No option to change the geographical location of system components
- Limited ability to modify the web application code
Solution
Design and implementation of a dedicated proxy layer, deployed close to the web application and acting as a buffering and optimization layer:
Phase 1: collection of detailed metrics and operational data to identify real sources of latency and to design effective optimization mechanisms
Phase 2: implementation of aggressive caching strategies (synchronous and asynchronous), local data manipulation, and a significant reduction of direct calls to the ERP system
Results
- Up to 90% reduction in ERP-generated latency
- Complete elimination of ERP saturation issues
- Stabilization of the sales web application and removal of downtime caused by overloads
- Significant improvement in system performance and scalability without violating existing technological constraints
The project demonstrates a practical approach to solving performance-related problems in environments with significant technological and organizational constraints.