Design Real-Time Exposure Aggregation Across Hundreds of Pods

Last updated: November 29, 2026

Quick Overview

Design a system that ingests trades, positions and market data for several hundred investment pods and shows firm, strategy and pod level exposures, PnL and limit breaches with a few seconds of latency.

Balyasny
System Design
Software Engineer
Balyasny
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a system that ingests trades, positions and market data for several hundred investment pods and shows firm, strategy and pod level exposures, PnL and limit breaches with a few seconds of latency.

A multi-manager platform like Balyasny lives or dies on central risk: it must know net and gross exposure, factor and sector concentration, and drawdowns for every pod in near real time and act when limits break. Interviewers look for a correct data model, a clear incremental computation strategy and sharp thinking about consistency between positions and prices.

What the Interviewer Expects
  • Separate the position stream (trades, allocations, corrections) from the price and risk-factor stream
  • Compute exposures incrementally and aggregate along a pod to strategy to firm hierarchy
  • Define limits as data and evaluate them on every update with debounced alerting
  • Address consistency: start-of-day positions plus intraday fills, and reconciliation with the prime broker
  • Plan for replay and point-in-time snapshots for audit
  • Quantify load: instruments, updates per second, fan-out to UIs
Key Topics to Cover
streaming aggregation
event sourcing
risk limits
hierarchical rollups
market data
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you add factor exposures from a risk model that updates once a day?
  • How do you handle a pod that trades a new instrument with no reference data yet?
  • What happens to dashboards when the market data feed for one asset class stalls?
  • How would you support a what-if query for a proposed hedge trade?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: per pod and rollup gross, net, long and short exposure by sector, country and asset class; intraday PnL; beta-adjusted exposure; limit checks with alerts to risk managers and PMs; drill-do...

High-Level Design
  1. Trade capture publishes fills, allocations and corrections to a durable log (Kafka) keyed by pod. 2) A position service folds start-of-day positions from the books of record with intraday fills int...

Submit Your Answer
Markdown supported

Related Questions