Design a Backtesting Service for Millions of Submitted Alphas

Last updated: November 29, 2026

Quick Overview

Design a platform where tens of thousands of users submit alpha expressions that are simulated over 10 to 20 years of daily data for thousands of instruments, returning Sharpe, turnover, drawdown and correlation to an existing alpha pool within minutes.

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

0

0

0 solved


Design a platform where tens of thousands of users submit alpha expressions that are simulated over 10 to 20 years of daily data for thousands of instruments, returning Sharpe, turnover, drawdown and correlation to an existing alpha pool within minutes.

This mirrors what WorldQuant BRAIN does: user expressions with settings such as universe, delay, decay and neutralization are simulated and scored, and identical submissions return cached results. The interviewer wants to see job scheduling, data layout for fast panel computation, caching at several levels, correlation checks at scale, and isolation of untrusted user code.

What the Interviewer Expects
  • Separates API, queue, simulation workers, market data store and results store
  • Lays out data as columnar dates by instruments matrices loaded in memory on workers
  • Caches whole results by a canonical hash of expression plus settings, and shares subexpression results
  • Computes correlation against a large alpha pool efficiently using stored daily P&L vectors
  • Enforces per-user quotas, timeouts and sandboxing
  • Discusses point-in-time data versioning so results stay reproducible
Key Topics to Cover
Job queues
Columnar data
Content-addressed caching
Correlation search
Multi-tenant isolation
Data versioning
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 do you keep correlation checks fast when the pool has millions of alphas?
  • How would you roll out a corrected dataset without invalidating every cached result silently?
  • How would you stop users from overfitting by brute-force submitting near-duplicate variants?
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: submit expression plus settings (region, universe, delay 0 or 1, decay, neutralization, truncation); get status; get metrics and daily P&L; check correlation versus the user's alphas and t...

High-Level Design

API service validates and parses the expression, canonicalizes it (normalize whitespace, constant folding, sorted commutative args), hashes expression + settings + data version into a key. On cache hi...


Submit Your Answer
Markdown supported

Related Questions