You can store your data in memcache and in datastore. Then you read data from memcache or (if is'n exsists in memcache) from datasrore. Or you can use write-behind cache http://www.youtube.com/watch?v=HL5igKTuN8M
On 17 апр, 08:04, Phuong Nguyen <[email protected]> wrote: > Hi guys, > I'm creating an online game server with GAE and there's a few concerns > that I'd like to ask for advice. > > One of my problem is that I need to manage a lot of information that > would not make sense to be stored in database. Like the status of each > player, the last time server seen such player, his current position in > the game. I'd like to store all of these information in the memory and > periodically persist back to the data store. Problem is (correct me if > I'm wrong) that GAE may shutdown my app and restart it on different > server at any time, so, data in memory would be gone and I need to > reload them from the database. But, certainly, if GAE Server restart > my app before the periodical saving happens, then the status of > players may be gone without my ability to recover back from database. > And, these data are subject to high change, so, persist them to data > store frequently would not be sensible. > > So, I may encounter problems to keep these data in memory. And I may > also encounter performance problem to constantly persist these data to > data store. So, would you guys please give me some advice? Am I > missing some thing or there should be any technology/tricks that can > be employed on GAE that can facilitate me to build such online game > like this? > > Thanks. > Phuong > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
