I'm working on an GAEJ application which will email out on both an event basis and on a regular basis.
My current problem is that I'm having difficulty thinking of the best way to keep a track of where I am with each quota. I had hoped to try and access appstats in my code to check the total number of mail.send calls in the last minute & that day but the documentation of that code is rather lacking.
Any advice would be appreciate, cheers.
One way could be to keep a count in the memory cache for each quota day. Each of these counts would need to be backed by a datastore sharded counter for when/if the memory cache counts are evicted.