Architecture of replica sets