Online Reconfiguration of Latency-Aware IoT Services in Edge Networks