« Facebook's Aditya giving presentation on Facebook Architecture | Main | N+1+caching is ok? »
Friday
Apr102009

counting # of views, calculating most/least viewed

I'm seeking for a design pattern or advice or directions.

I need to count views/downloads of a set of resources, let them to be identified by their respective URLs.
This is not a big problem. I also need to keep a list of viewed/downloaded resources in the last X days. This list needs to be updated every now and then to reflect real last X days of usage. So resources that were requested prior to X days get evicted from it.
So it's sort of a black box, you feed messages (download request) in and it gives you that list of URLs with counters on the other end.

How would you go about designing it?

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>