Semi-Globals and Multi-Threading are Like Chalk and Cheese
summary
SimCorp Sofia gains a master/satellite architecture that exports orders and imports executions; first satellite uses file exchange, second uses a TCP connection to Charles River and later TradeWeb and Bloomberg, and one customer runs multiple bespoke satellites. Legacy globals and semi-globals cause nondeterministic wrong results when threads collide; debugging takes about eight months to deliver and roughly a year to hunt final race conditions. Solutions: factor logic into shared functions, maintain enumerated semi-global lists for bulk localization, and detect conflicts by replacing suspects with dynamic functions to force immediate failures.
AI-written summary · about
chapters (7)
- 0:00Issues with using globals and semiglobals
- 2:12Adding interactions with external systems to SimCorp Sofia
- 6:24Understanding the system architecture
- 9:12Getting the system working
- 10:03Extending the system further
- 13:00How to tell when variables are being modified by multiple threads
- 17:25What we learned about software development
