Comment on Realtime Metrics for 128 Million Users with Redis: 50ms + 16MB RAMparentComments−firefoxman114yWow, that's almost exactly how I implemented it: var bucketSize = 8190; ... var bucketNumber = Math.floor(userId / bucketSize), bitInBucket = userId % bucketSize; ...correction on my last comment, looks like I use ~8 thousand bits per bucket, not 8 million.
Comments
Wow, that's almost exactly how I implemented it:
...correction on my last comment, looks like I use ~8 thousand bits per bucket, not 8 million.