Consider a web application that has several instances on 2 interconnected lans: (excuse the ascii)
LAN1 LAN1 LAN2
=========== =========== ==========
WebServer1 | --------------> Webserver2 ------------------>Webserver3
MongoServer1 | <------------- MongoServer2 <---------------- Mongoserver3
=========== ============ ===========
Everything document created on webserver1 needs to go to webserver2 and vice versa
Documents that have a certain flag set (eg to releasableToLAN2) are allowed to be replicated to webserver3
Does mongodb support this selective replication of data based on the metadata of the document?
Also, how well does the replication perform over slow/unstable links. Assume that the interconnection between lan1 and lan2 is 1mbit and very high latency (600ms+)
Thanks,
Craig
PS. the actual architecture has more complexities - if the above is possible I will make a more detailed post with a jpg