Re: [appengine-java] Re: How to efficiently implement Quotas

2011-11-28 Thread Matthew Jaggard
Quite a few people seem to be using "pull" queues for this. Each time a resource is used, you put a new item in a pull queue - you can then periodically retrieve 1000 items from the queue in a single call and save the information to the datastore. On 26 November 2011 15:20, Max wrote: > We use m

[appengine-java] Re: How to efficiently implement Quotas

2011-11-26 Thread Aviv Keren
I asked about something else: Hi, 'appcfg.cmd update' response with: " java.io.FileNotFoundException: C: \aviv\Guestbook\WEB-INF\appengine-web.xml" although the file is located under WEB-INF. see: c:\Program Files\Java\appengine-java-sdk-1.6.0\appengine-java- sdk-1.6.0\bin>appcfg.cmd update C:\av

[appengine-java] Re: How to efficiently implement Quotas

2011-11-26 Thread Max
We use memcache + datastore counter and it works quite well. Let's say datastore counter will be updated every time count % 1000 == 0. then even the memcache crashed then you lose 1000 uncharged API call at most. -- You received this message because you are subscribed to the Google Groups "G

[appengine-java] Re: How to efficiently implement Quotas

2011-11-25 Thread gk
Implement a filter that records each count and checks if the limit is reached. To make it cheaper: 1. You can uses a preliminary counter in Memcache (see Memcache API, look for increment). A cron task then transfers the Memcache count into the Datastore every few minutes... 2. Another approach