
How Pingora keeps count
5/12/2023
Introduced pingora-limits, a library for counting inflight events and estimating event rates. Implemented Count-Min Sketch (CM sketch) as the core algorithm, providing O(1) time complexity per event and O(log(n)) space complexity, with lock-free operations. Benchmarked pingora-limits against naive and optimized hash table approaches, demonstrating significant speed and memory improvements, particularly in multi-threaded scenarios.