An auto-discovery mesh network framework for building fault-tolerant and scalable applications