Databricks·Software Engineer·Onsite - System Design / Architecture
May 2026
Databricks system design round, one question the whole time: a hit counter. Sounds straightforward but they pushed pretty hard on the concurrency angle at the end, which I was not fully ready for.
- Design a hit counter that can record hits and return the total number of hits in the past 300 seconds. The hit(timestamp) and getHits(timestamp) functions receive monotonically non-decreasing timestamps in seconds. Walk through your design choices and how you'd handle scale.
“I went straight to the circular array with 300 buckets, which is the move, but I fumbled explaining why you reset a bucket when the timestamp gap exceeds 300.” The rest of the author's notes on Software Engineer interview at Databricks, Onsite - System Design / Architecture round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post