python - GAE NDB Memcache - how to minimize cost of app with frequent writes -


i'm building reddit-style user-generated content website users vote on content submissions. right app writes datastore every time user votes keep track of total vote count. i'm developing locally, imagine cost incredibly expensive many frequent writes in real deployed app.

how can minimize cost of this? know ndb has automatic memcache read operations , operations.

right i'm thinking app write memcache each user vote, , use task queue api schedule task everyday @ midnight make sort of large batch write operation votes count. of course leave open possibility data gets deleted memcache , not updated datastore.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -