Overview of BloomFilter.NetCore
mainBloomFilter.NetCore is a high-performance .NET library for Bloom filters—probabilistic data structures used to test element membership with minimal memory footprint. It provides $O(1)$ time complexity for both add and query operations.
Key characteristics:
- Space Efficient: Uses significantly less memory than a
HashSet. - Probabilistic: May return false positives (claiming an element is present when it is not) but never false negatives.
- Two Implementation Types:
- In-Memory (
FilterMemory): UsesBitArrayfor single-process scenarios. - Distributed (
FilterRedisseries): Uses Redis backends to share state across multiple application instances.
- In-Memory (
Common use cases include cache penetration protection, deduplication (URLs, IDs), recommendation systems, and web crawlers.