Valkey™ Bloom module now available on Aiven for Valkey
What's new
The Valkey Bloom module is now available on Aiven for Valkey services running Valkey 9 and later. It adds a probabilistic Bloom filter data type that lets you test set membership using very little memory. A Bloom filter can tell you that an element is possibly in a set or definitely not in a set, which makes it well suited to high-traffic use cases such as preventing cache penetration, deduplicating streams, and filtering out known items.
Key features
- Space-efficient membership tests: Check whether an element is likely present or definitely absent using a fraction of the memory needed to store the elements themselves.
- Auto-scaling filters: Filters expand automatically as you add elements, preserving the configured false positive rate.
- Configurable accuracy: Set a custom capacity and false positive rate per filter.
- Persistence: Bloom filters are saved and restored together with the rest of your Valkey data.
Configuration
Valkey Bloom is enabled by default on all Aiven for Valkey services running Valkey 9 and later. No configuration is required, and the module cannot be disabled.
The following BF.* commands are available immediately: BF.ADD, BF.EXISTS, BF.MADD, BF.MEXISTS, BF.RESERVE, BF.INSERT, BF.CARD, and BF.INFO.
Getting started
- For existing services: Apply the available maintenance update to activate Valkey Bloom, then start creating filters with
BF.RESERVEand checking membership withBF.ADDandBF.EXISTS. - For new services: Valkey Bloom is enabled automatically when you create a new Aiven for Valkey service running Valkey 9 or later.
Learn more
- Aiven for Valkey modules reference — Aiven-specific configuration and supported commands
- Valkey Bloom documentation — Open-source Valkey Bloom docs, including commands, scaling behavior, configuration options, and memory management