Resource management in dynamic IoT environments