/plushcap/analysis/cloudflare/how-pingora-keeps-count

How Pingora keeps count

What's this blog post about?

Pingora-limits is a Rust library for counting events efficiently using a probabilistic data structure called HyperLogLog++. It provides an estimator that can accurately count the occurrence of events with a small probability of overestimation, making it useful in scenarios where false positives are acceptable or can be mitigated by other means. The design is based on multiple hash tables and atomic counters to ensure lock-free and efficient performance. Pingora-limits is currently used in production at Pingora for the connection limit feature.

Company
Cloudflare

Date published
May 12, 2023

Author(s)
Yuchen Wu

Word count
1698

Language
English

Hacker News points
3


By Matt Makai. 2021-2024.