<div>Dear Erlangers,</div><div><br></div><div>Does anybody know best memory efficient way to count events within last XX minutes?</div><div><br></div><div>So far I have the following idea: For each counter I have a process. The counter process has a list of XX items. Each item represents a certain minute, so I always know where is my current counter. There is also must be a mechanism to remove last item from the list and add a new one. Summing values from all items is a number of events within last XX minutes. This is it.</div>

<div><br></div><div>Maybe there is a ready lib that does the same in a better way?</div><div><br></div><div>Any suggestions are welcome!</div><div><br></div><div>Best regards,</div><div>Max</div><br><br>