Engineering resilient collaborative edge-enabled IoT