SpinTheMic
Pro

Interview practice question

Bots request random product IDs

System Design · Caching · Intermediate

Bots are requesting millions of random, non-existent product IDs, and every request reaches the database. How do you protect it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Cache penetration attack.
  • Validate ID format early.
  • Negative caching with short TTL.
  • Bloom filter of valid IDs.
  • Rate limit suspicious clients.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics