Topologies
Single, HA and sharded
One node, a Sentinel-coordinated highly available tier (3 or 5 nodes), or a sharded cluster (from 6 nodes, growing with shards). The tier decides failover behaviour and which client driver your application needs — and nothing else about your code.