Exercises
The following exercises provide you with the opportunity to practice with Bloom filters. The solutions to these exercises are found in the section Chapter 13.
-
You’re the lead engineer at the social media app HumbleBrag. This particular app requires users, upon sign-up, to choose a unique username. If a proposed username is already found to be taken, the user is asked to choose a different username.
Now, you’ve gotten complaints that this process is too slow. Each time a user suggests a username, it takes a whopping four seconds (sheesh!) for the app to tell the user whether that username is available. You know that this is happening because the app, under the hood, is calling the database to search whether that username exists.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access