Title Template
Databricks - Full-stack engineer - Frontend Systems Design
Description Template:
Level: Senior
Education: Bachelors
Years of Experience: 4
Questions Asked:
We used CoderPad as the platform. Within coder pad they had a text document about the problem.
It was the typeahead/autcomplete problem.
They didn’t care about css/accessibility just business logic.
The text document included some generic javascript such as an empty state object and a handleInputChange function which I had to implement
They want you to lead the conversation and talk about error/empty/loading states, debouncing the input caching and race conditions
They also wanted to hear the debounce helps prevent getting rate limited
I had to explain how debounce worked by illustrating it with an example
I had to implement a cache mechanism to store all the responses from the API. I also implemented a TTL mechanism I am not sure if that was neccessary
I had to handle the race conditions for successful requests.
As a followup I also had to implement retries
As another a follow up they asked about race conditions in loading and error states as well