Towards Elastic and Resilient In-Network Computing