GAE NDB Memcache - how to minimize cost of app with frequent writes
<p>I'm building a Reddit-style user-generated content website where users frequently vote on content submissions. Right now the app writes to the datastore every time a user votes to keep track of total vote count. I'm developing locally, but I imagine the cost would incredibly expensive to do so many frequent writes in a real deployed app. </p>

<p>How can I minimize the cost of this? I know NDB has automatic memcache but that is only for read operations and get operations. </p>

<p>Right now I'm thinking that the app will only write to memcache for each user vote, and then use Task Queue API to schedule a task everyday at Midnight that could make some sort of large batch write operation for all the votes count. Of course this would leave open the possibility that some data gets deleted from memcache and is not updated to the datastore. </p>