The hidden cost of the edge: a performance comparison of edge and cloud latencies

Ahmed Ali-Eldin, Bin Wang, Prashant J. Shenoy

Abstract

While edge computing is prized for its proximity to users, its resource-constrained nature can lead to a "performance inversion" where it actually becomes slower than the cloud. This research demonstrates that at moderate-to-high utilization (40-60%), queuing delays at the edge can completely offset its network latency advantages, making the centralized cloud the faster option for end-to-end performance.

Introduction

The conventional wisdom in distributed systems suggests that the edge is inherently superior for latency-sensitive applications due to physical proximity. However, end-to-end latency comprises both network latency (time on the wire) and server latency (queuing and processing time). This paper investigates the Edge Performance Inversion problem: the phenomenon where small, distributed edge clusters lack the "statistical smoothing" of massive cloud data centers, leading to disproportionate queuing delays under load. The core question is: under what conditions does the "hidden cost" of edge queuing outweigh the benefit of shorter physical distance?

Methodology

The researchers employed a two-pronged approach involving analytical modeling and experimental validation.

Analytical Modeling

Queuing theory was used to compare the architectural differences between edge and cloud deployments. The cloud was modeled as an $M/M/k$ system—a single large queue serving $k$ servers. In contrast, the edge was modeled as $k$ independent $M/M/1$ systems, where each server maintains its own queue. These models were further generalized to $G/G/1$ and $G/G/k$ using the Allen-Cunneen approximation to account for bursty, real-world traffic patterns derived from Azure serverless traces.

Comparison of Edge (left) and Cloud (right) queuing models showing the structural difference in request handling.

Experimental Validation

A real-world testbed was constructed on Amazon EC2 using a compute-intensive Deep Neural Network (DNN) image classification service. "Edge" nodes were emulated by placing clients and servers in the same AWS region (1ms RTT), while "Cloud" nodes were emulated using distant regions (15ms to 80ms RTT). HAProxy was utilized in the cloud setup to mimic centralized load distribution across a cluster.

Key Insights

The Efficiency of Centralization

The "Bank Teller Analogy" illustrates the core finding: a single line for multiple tellers (Cloud) is more efficient than separate lines for each teller (Edge). Centralization prevents a single slow request from idling other available resources. The edge, by distributing servers geographically, effectively creates many small, inefficient lines.

Workload Skew and Tail Latency

Real-world traffic is rarely uniform. Workload skew means specific edge sites (e.g., near a stadium) may hit capacity much faster than others, even if the overall system load is low. Furthermore, performance inversion affects tail latency (95th percentile) much earlier than mean latency. Even if average response times look good, a significant portion of users may experience massive delays compared to a cloud alternative.

Distribution of total load across different Edge Data Center (EDC) IDs, illustrating significant workload skew in real-world scenarios.

Results

  • Inversion Thresholds: Experimental results showed that edge performance degraded below that of a "nearby" cloud (15-25ms RTT) at only 40-60% utilization.
  • Tail Latency Impact: For a cloud 15ms away, the 95th percentile latency at the edge became worse than the cloud at just 25% utilization.
  • Model Accuracy: Analytical equations predicted the inversion point within 4.5% to 6% of experimental data.
  • Capacity Requirements: To match cloud latency guarantees, edge providers must significantly overprovision hardware because they cannot aggregate demand across a large pool of resources.

Limitations and Conclusion

The study assumes requests are bound to the nearest edge node; geographic load balancing (queue jockeying) might mitigate some inversion effects. Additionally, the assumption of hardware parity between edge and cloud may be optimistic, as edge hardware is often less powerful, potentially accelerating performance inversion. Future work will explore "inversion-aware" dynamic resource allocation and the economic implications of edge overprovisioning to avoid these pitfalls.

Summary updated

BibTeX
@inproceedings{alieldin2021hidden,
  author = {Ahmed Ali-Eldin and Bin Wang and Prashant J. Shenoy},
  title = {{The hidden cost of the edge: a performance comparison of edge and cloud latencies}},
  booktitle = {SC},
  year = {2021},
  doi = {10.1145/3458817.3476142},
}
Figure