Cluster cluster = result.result();
// Create a new network configuration. This network uses
// circular connections to send "ack" messages back to the
// FaultTolerantFeeder from the MessageReceiver.
NetworkConfig network = vertigo.createNetwork("fault-tolerant");
network.addVerticle("sender", FaultTolerantFeeder.class.getName());
network.addVerticle("receiver", MessageReceiver.class.getName());
network.createConnection("sender", "out", "receiver", "in");
network.createConnection("receiver", "ack", "sender", "ack");
// Deploy the network to the cluster. Once all the components
// in the network have been started and all the connections
// are successfully communicating with one another the async
// handler will be called.