SD-53 · PARTS COMPATIBILITY · INTERACTIVEBreak it.
Break it.
Then fix it.
Turn up the shoppers, watch what melts, and add the parts a real parts store needs to answer “does this fit my car?”. Every switch is a decision you would defend in an interview.
CHALLENGEServe 30K requests/s with p99 under 200 ms, no errors, and no wrong fit answers from bad supplier data.
StatusDOWNAt 5K requests per second
p99 latency500+ msTarget under 200 ms
Errors60.8%2.5% of fit answers wrong
Monthly cost$6,580Rules joined per request
ShoppersLIVE
5.0K req/s · 2.5K fit checks/straffic source
Load balancerOK
Autoscales app serversspreading 5.0K/s
App servers × 8OK
Stateless5.0K / 8.0K req/s
Search indexOK
Filter by vehicle id2.0K / 15K searches/s
Catalog DBDOWN
Rule joins on every check26K / 10K units/s
Every fit check evaluates rules. Each product page turns year ranges, engines and notes into a yes or no with joins. Compile the rules once, when a feed arrives, into a set of vehicle ids per part, and look that up.
2BFitment pairs50M parts × about 40 vehicles each, compiled from 300M rules.
10 GBCompiled storeOne compressed vehicle set per part, about 200 bytes.
90%Fit cache hitsA few thousand popular parts get most product views.
2.5%Wrong without checksRaw supplier feeds; each wrong answer is a likely return.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.