Re: Modeling charts

2015-02-18 Thread Uwe Dauernheim
Thanks Fang, will do some read up. /Uwe On Tue, Feb 17, 2015 at 11:01 PM, Yan Fang wrote: > Hi Uwe, > > Your use case seems to me is more like a state-management case. What comes > to my mind is that, > 1) every time a song is played, you updates the count of this song. You do > not put the map

Re: Modeling charts

2015-02-17 Thread Yan Fang
Hi Uwe, Your use case seems to me is more like a state-management case. What comes to my mind is that, 1) every time a song is played, you updates the count of this song. You do not put the map in memory, as you said, the memory could be quite large. Instead, you use Samza's build-in key-value sto

Modeling charts

2015-02-17 Thread Uwe Dauernheim
I try to model a music charts system to get familiar with Samza. Charts are defined by the top N entries with highest count of a map from unique track ID, basically a song, to counter, basically the amount of plays of this entity, during a sliding time-window. The problem I see is that of an everg