Saturday, May 25, 2019

Counting Distinct Users in Real-Time With Redis Using Low Memory

If you are developing an event-based application that handles many requests from different users, you most likely want to count distinct user action within a sliding window or a specified time range.

One of the quickest ways to count distinct user is to prepare an SQL like SELECT count(distinct user) from ACTION_TABLE. But, this might be expensive if there are millions of records produced in real time.



from DZone.com Feed http://bit.ly/2VQM64j

No comments:

Post a Comment