node.js - nodejs&couchbase work with multi-core cpu and multi-server -
i use nodejs(access couchbase on same server) setting online game server. there few users. wonder if users become more , more. needs multi server/multi nodejs thread(on different cpu core)/multi couchbase, how can cooperate together? how deploy system? person have experience?
the creation of multiserver couchbase cluster easy pie - install couchbase on new server , add cluster 1 button.
nodejs scaling more difficult. if have realtime game (i.e. use websockets handle players communication) should nosql databases have "pub-sub" out of box (i.e. redis). there utils implement "pub-sub" memcached, ugly , performance isn't good. if game isn't realtime (i.e. game farmville) can use couchbase "shared" layer between nodejs threads , servers.
Comments
Post a Comment