Assumptions:
- The usernames of registered users are stored in a set
- I want to use a Bloom filter to make lookups faster.
- The Bloom filter as a certain probability of false-positives (0.1%)
When a new user wants to register, in most cases, my UI tells them "this name is not in use, you're good to go".
But what does the backend need to do if a positive match is found?
The result might be a false-positive. Would finding out the true answer not add to time-complexity and thus make Bloom filters inefficient in many cases?
Telling a user "Name aready in use, choose a different oe" might not be so bad, but what about other use cases where you cannot be wrong.