Answer
A HyperLogLog is a probabilistic data structure used to estimate the number of unique items in a very large collection using a tiny, fixed amount of memory, solving the problem of counting unique visitors or unique events at massive scale without needing to store every single individual item to check for duplicates.
PFADD unique_visitors:today 'user123'
PFADD unique_visitors:today 'user456'
PFCOUNT unique_visitors:todayReal-world example A high traffic website tracks approximately how many unique visitors it has had today using a HyperLogLog, storing this estimate in just a few kilobytes of memory regardless of whether there are thousands or millions of actual unique visitors.