Design a Metrics Store for Simulation Regression Results Across Builds

Last updated: November 29, 2026

Quick Overview

Design the backend that records per-scenario simulation metrics (collisions, minimum time to collision, comfort, rule violations) for every build of an autonomy stack, and powers dashboards that compare builds, flag regressions and track trends over months.

Applied Intuition
System Design
Software Engineer
Applied Intuition
November 29, 2026
Software Engineer
Onsite
System Design
Medium

0

0

0 solved


Design the backend that records per-scenario simulation metrics (collisions, minimum time to collision, comfort, rule violations) for every build of an autonomy stack, and powers dashboards that compare builds, flag regressions and track trends over months.

Applied Intuition's validation products turn huge numbers of simulation runs into evidence that a stack is improving or regressing. The interviewer checks data modeling for high-cardinality results, an efficient build-to-build diff, and statistical care when calling a regression.

What the Interviewer Expects
  • Model results as (build, scenario, metric, value) facts with dimensions
  • Choose a columnar store for aggregation over billions of rows
  • Precompute build comparisons that dashboards need
  • Define regression detection that accounts for noise and flakes
  • Plan retention and rollups
Key Topics to Cover
metrics and observability
columnar storage
OLAP
regression detection
data modeling
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 compare two builds that ran different scenario sets?
  • How would you let users define a custom metric after the fact?
  • How do you trace a regression to the commit range that caused it?
  • How would you present safety case evidence to an auditor?
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

Each build runs around 50k scenarios, each emitting about 30 scalar metrics plus a pass or fail per rule. With 200 builds a day that is roughly 300 million metric rows per day. Queries: compare build ...

High-Level Design

Simulation workers write result records to a queue (Kafka) as each scenario finishes. A stream consumer validates and writes to a columnar OLAP database such as ClickHouse, in a results table ordere...


Submit Your Answer
Markdown supported

Related Questions