MultiHub Forum

Full Version: How did you avoid a distributed monolith when decomposing latency-sensitive risk cal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a senior engineer at a financial services firm, and we're in the early stages of migrating a critical, monolithic risk calculation engine to a cloud-native architecture. The current system is a massive C++ application that runs on-premises, and while it's incredibly fast for batch processing, it's inflexible, expensive to scale, and a nightmare to deploy updates to. The business wants to move to a microservices model on AWS to improve agility and enable real-time risk analytics. However, we're facing a major dilemma: the core calculation algorithms are highly sensitive to latency and require tight coupling between data ingestion, transformation, and computation steps. Initial prototypes using event-driven, fully decoupled services have introduced unacceptable overhead, adding hundreds of milliseconds to calculations that need to complete in under fifty. The team is now considering a hybrid approach—keeping a tightly integrated "compute core" as a single, scalable service while breaking apart the supporting data pipelines and UI layers. I'm concerned this might just recreate a distributed monolith with all its complexities. For architects who have modernized similar high-performance, low-latency systems, how did you approach the decomposition? Did you find that strict microservice boundaries were incompatible with your performance requirements, and if so, what patterns did you use to isolate domains without sacrificing speed? How did you validate the performance of your new architecture before committing to a full rewrite?
You're not alone. For latency-sensitive workloads, a pragmatic hybrid tends to work: keep the compute core as the hot path, and wrap everything else behind a lean, high-throughput boundary. Use strangler steps to migrate features one by one, and keep hot data co-located (same region/AZ) to minimize cross-service hops. If boundary latency grows, flip to the safe path automatically while you iterate.