System Design · Senior · Question 17 of 75

What is a Bloom filter useful for?

Explanation

A Bloom filter never gives false negatives but allows false positives. Example: quickly rule out usernames that are definitely free, or URLs that are definitely not cached, before going to the DB.

Further reading

Problem with a question

System Design · Senior · question 17

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz