This approach often works for third party services, too.   For example, you can put a mongoconf&#x2F;mongod&#x2F;mongos triplet on every box.  Your app would connect to the mongos on localhost which then forwards requests to whichever mongod happens to be master.   The same approach works for redis &amp; redis_sentinel.