SkillSprout
Chapter 5

Core Interview Designs

Links, rate limits, search suggestions and crawling with the full eight-step framework.

1Design a URL Shortener (TinyURL)
Intermediate
19 min
2Design an API Rate Limiter
Intermediate
29 min
3Design Typeahead (Search Autocomplete)
Intermediate
25 min
4Design a Web Crawler
Intermediate
26 min

Chapter quiz

Core Interview Designs · 6 questions

  1. 1.Why is the redirect path optimized with a cache rather than the write path?

  2. 2.With 30 billion total links, which key length is the best fit?

  3. 3.Why can't each gateway keep its own in-memory counter for a per-user limit?

  4. 4.What is the race condition in 'GET tokens, decide, then SET tokens'?

  5. 5.Why store the top-k suggestions on every trie node?

  6. 6.Why does the URL-seen check dominate the design more than the fetch rate does?

0 of 6 answered