Fidelity · Spring Boot
Latency of the slowest call, not the sum of seven
- Problem
- The account dashboard needed data from 7 back-office systems: balances, positions, performance, IRA, crypto and more. Calling them one after another adds every latency together.
- Fix
- Fan out with CompletableFuture on a bounded executor, give each call its own timeout, and merge results as they arrive. A failed system becomes a missing section instead of an error page.
- Outcome
- Dashboard latency is bounded by the slowest dependency, and one system going down no longer takes the dashboard with it.