redesign master-master architecture