We are making a small download site for software we create on AppEngine. We now would like to track the downloads of each product and are wondering, if there is a preferred way of doing so.
Basically, we have two approaches:
- Having a counter Entity for each file (filename, year and month as key) which is increased upon a download.
- Logging each action to the database and then have a scheduled task collecting them
Does someone here have experience with either way? Would it be possible to have concurrent requests on the counter Entity (and giving the correct result)? Or would a third way be better?
many thanks in advance for all ideas.
If you only need to count the downloads use a counter, don’t bother with an audit trail per download.
Follow the guidelines in sharding counters on how to do it effectively on the App engine