Efficient edge-cloud resource management for latency-sensitive applications