Skip to content
This repository has been archived by the owner on Aug 18, 2019. It is now read-only.

Add Counter Groups for Sorting counted things by count #6

Closed
sappenin opened this issue Jul 25, 2014 · 2 comments
Closed

Add Counter Groups for Sorting counted things by count #6

sappenin opened this issue Jul 25, 2014 · 2 comments

Comments

@sappenin
Copy link
Member

If a set of Counters belongs to a given "group" or "tag", then we can create an index of all the counts for the counters in a given group, and query the datastore for ordered lists of counters. In this way, we can enable leaderboard-type activity.

For example, if there are N number of counters tracking follower counters (i.e., one counter per user being followed) then we could add each of these counters to the "follower" group. Next, we could query the counter service for the "most followed" or "least followed" users by getting an ordered list of counters in the "follower" group.

@sappenin
Copy link
Member Author

See issue #3 when implementing this feature. The CounterGroup contains a surrogate field for tracking the counter's counter in an "eventually consistent" manner.

@sappenin
Copy link
Member Author

This is implemented via the commits for issue #18. See issue #19 for the final pieces to enable this feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant