Architect's Tech Stack
Dec 18, 2020 · Databases
How to Use Redis to Count Website Visits: Hash, Bitset, and Probabilistic Algorithms
This article explains three Redis-based approaches—using Hashes, Bitsets, and the HyperLogLog probabilistic algorithm—to count daily website visits, detailing command usage, advantages, disadvantages, and implementation considerations for high‑traffic sites, including handling logged‑in and anonymous users, memory consumption, and accuracy trade‑offs.
Backend DevelopmentProbabilistic AlgorithmsRedis
0 likes · 6 min read