It sounds like the core problem is syncing data between a local DB or local 
cache of a DB and a remote DB. You might consider couchDB/pouchDB as an 
alternative to mongo, since it has a really good built-in syncing story.

If you really want to use MongoDB, you could consider having a local 
instance running and using replication (
http://docs.mongodb.org/manual/replication/) but I'm not sure what the 
performance characteristics would be. It would probably be 
better/faster/simpler to use something that can be embedded locally, like 
pouchDB.

There are a lot of people that use Memcached or Redis as a caching layer 
for Mongo, so you should be able to find lots of articles around the net 
for how to do that, but the use-case for caching data for a web server is a 
bit different than caching data for a local game and you might find that 
these solutions don't work well for your needs. Since this is a game, you 
might prefer to have memcached/redis embedded rather than running in a 
separate process. It doesn't look like redis can do this, but for memcached 
there is https://code.google.com/p/ememcached/.

LevelDB is a popular embedded database foundation with a lot of active work 
in the node community building on top of it -- there is an application 
cache layer built on it (https://npmjs.org/package/hangar) and a couch 
implementation on it (https://npmjs.org/package/couchup) that you may find 
useful.

Overall, there aren't a lot of perfect-fit or ready-made solutions to your 
problem in node because node is more commonly used for implementing servers 
-- it's not commonly used for local applications or games.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" 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/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to