Online Service with Delay

Yossi Azar, Arun Ganesh, Rong Ge, Debmalya Panigrahi

Abstract

In this paper, we introduce the online service with delay problem. In this problem, there are $n$ points in a metric space that issue service requests over time, and a server that serves these requests. The goal is to minimize the sum of distance traveled by the server and the total delay in serving the requests. This problem models the fundamental tradeoff between batching requests to improve locality and reducing delay to improve response time, that has many applications in operations management, operating systems, logistics, supply chain management, and scheduling. Our main result is to show a poly-logarithmic competitive ratio for the online service with delay problem. This result is obtained by an algorithm that we call the preemptive service algorithm. The salient feature of this algorithm is a process called preemptive service, which uses a novel combination of (recursive) time forwarding and spatial exploration on a metric space. We hope this technique will be useful for related problems such as reordering buffer management, online TSP, vehicle routing, etc. We also generalize our results to $k > 1$ servers.

Introduction

The Online Service with Delay (OSD) problem addresses a fundamental conflict inherent in many real-world systems: the tradeoff between efficiency and responsiveness. Whether dispatching technicians to service calls or managing buffers in an operating system, a decision-maker must choose between grouping requests to minimize travel or setup costs (locality) and serving requests immediately to minimize wait times (delay).

In the OSD framework, $n$ points in a metric space issue requests over time. A server must visit these points to fulfill the requests. The objective is to minimize the total cost, defined as the sum of distance traveled and the total delay penalty, where penalties are non-negative monotone functions of time. While OSD shares similarities with the Online Traveling Salesman Problem (TSP) or Reordering Buffer Management, it is distinct because both travel cost and delay are explicitly part of the objective function.

Methodology: Hierarchical Embedding and Preemptive Service

The authors' approach begins by embedding the general metric space into a Hierarchically Separated Tree (HST). An HST is a rooted tree where edge lengths decrease by a constant factor at each level of depth, providing a structured way to handle spatial relationships.

Hierarchically Separated Tree (HST) structure used for metric embedding.

The core contribution is the Preemptive Service (PS) Algorithm, which operates in two distinct phases:

  1. Waiting Phase: The server remains stationary while unserved requests increment "counters" on the edges of the HST. This phase concludes when a "major edge"—the longest edge on a request's path to the server—becomes "saturated" (i.e., its counter reaches its length).
  2. Serving Phase: Instead of merely serving the request that triggered the move, the algorithm employs Recursive Time Forwarding. It simulates future time to identify other requests likely to become critical soon. A carefully selected subset of these "non-critical" requests is then served to "piggyback" on the travel cost already being incurred.

For the $k$-server generalization ($k$-OSD), the authors adapt the Active Cover algorithm, moving multiple servers simultaneously toward requests to maintain a balanced configuration.

Key Insights: The Necessity of Preemption

A major insight of this work is that "natural" local balancing approaches—such as waiting until a location's delay penalty equals the travel cost (a "ball growing" intuition)—are not competitive. An adversary can exploit such local strategies by forcing the server to move back and forth repeatedly, whereas a global optimal solution would have batched those requests more effectively.

Adversarial request pattern on a star metric demonstrating the failure of local balancing algorithms.

To achieve competitiveness, an algorithm must sometimes serve requests that have incurred zero delay penalty. This preemptive service allows the algorithm to exploit spatial locality that a purely reactive algorithm would miss. The Recursive Time Forwarding mechanism decides which requests to serve preemptively by "forwarding time" to see which subtrees will become over-saturated in the future, using a "charging tree" logic to amortize these costs against the optimal solution.

Key Results

  • Single Server OSD: The authors achieve a competitive ratio of $O(\log^4 n)$ for general metric spaces, derived from an $O(h^3)$ ratio on an HST of depth $h \approx \log n$.
  • Multi-Server ($k$-OSD): The algorithm generalizes to $k$ servers with a competitive ratio of $O(k \log^5 n)$ on general metrics.
  • Paging with Delay: The paper demonstrates that OSD on a uniform metric is equivalent to the classical paging problem with delay. They provide an $O(k)$-competitive deterministic algorithm and an $O(\log k)$-competitive randomized algorithm, both of which are asymptotically tight.
  • Non-Clairvoyant Limits: A lower bound of $\Omega(\Delta)$ (where $\Delta$ is the aspect ratio of the metric) is proven for "non-clairvoyant" algorithms that lack knowledge of future delay penalty functions, highlighting that the shape of the penalty function is critical information.

Limitations and Future Work

Despite these advances, several open questions remain. There is a significant gap between the $O(\log^4 n)$ upper bound and the $O(\log n)$ lower bounds typical for related problems; a direct approach avoiding HST embeddings might yield a tighter ratio. Additionally, the $k$-server result has a linear dependence on $k$, whereas randomized algorithms for the classical $k$-server problem achieve poly-logarithmic dependence. Finally, the difficulty of obtaining a standard Linear Programming relaxation for OSD suggests that new primal-dual techniques may be needed for further progress.

Summary updated

BibTeX
@inproceedings{azar2017online,
  author = {Yossi Azar and Arun Ganesh and Rong Ge and Debmalya Panigrahi},
  title = {{Online Service with Delay}},
  booktitle = {STOC},
  year = {2017},
  doi = {10.1145/3055399.3055475},
}
Figure