c# - MongoDB - Hosting on multiple servers -


i wanting use mongodb on windows server , using .net code at:

https://github.com/atheken/norm/wiki/ 

i have 2 web servers need host mongodb on , keep database on both instances in sync. should looking @ accomplish this? seems master/slave replication option ideal.

if this, can keep connection string as?

mongodb://localhost/mydatabase?strict=false 

thanks help. first attempt using mongodb.

mongodb doesn't support kind of peer-to-peer replication, master-slave data written primary database sync'd out secondary replicas. can, however, distribute reads across replicas using slaveok option. check out replica sets more info. distribute writes, take @ sharding.

also, might not ideal host mongodb , web server on same box. mongo greedy when comes memory, , if database grows larger available ram web server performance suffer.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -