PrepCity

Bloom filters

Open the lab

By the last page, this is the design you will have built.

Lesson · 14 pages · about 13 min

Bloom filters

A row of bits and a few hashes answer "is this key in the set?" with "definitely not" or "maybe", so most lookups for missing keys skip the disk. No false negatives; the false-positive rate is set by bits per key and climbs as the filter fills.

Words you’ll learn

  • API
  • Disk
  • SSTable
  • URL
  • Cache
  • Database
  • Origin
  • Bloom filter
  • Hash
  • False negative

Page by page