Code RoomStreaming windowed aggregations
HardPrep Room Coding #3482

Streaming windowed aggregations

System designML systemsDistributed systemsSenior–Staff~50 min

Design the streaming-aggregation engine of a feature store that computes real-time windowed features ('count of logins from this account in the last 5 minutes', 'sum of transfer amounts in the trailing hour') for an account-takeover model, where these features must be correct under out-of-order and duplicate events and must read at <5ms online. Walk through the windowing and aggregation model, how you guarantee a duplicate event isn't double-counted, and how the same aggregation stays consistent between the streaming online path and the batch path used to generate training data.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.