Manuscript Offprint
arXiv:2610.20567Prioritizing Microservice Requests via Retries
Ofek Lavi* Jhonatan Tavori§ Hanoch Levy* Anat Bremler-Barr*
*Tel Aviv University §Columbia University
Abstract—Cloud services rapidly shift towards independently-managed microservices architectures. This independence may lead to temporary microservices miscoordination, resulting in overloads and rejections of valuable transactions. This weakness may further be exploited by attackers to launch overload attacks inflicting performance and cost damages.
Retry operations are a key machinery aiming at overcoming seldom rejections. However, during overload periods they: a) Fail protecting valuable transactions from rejections, and b) Trigger large-scale performance-degrading retry storms.
We propose simple modifications in retry operations, overcoming these deficiencies by transforming retries into a rejection prioritization mechanism, DiffTry (Differential Retries). It is based on a simple, lightweight, distributed and stateless design and requires neither overload sensing nor microservices coordination.
We develop an analytical model capturing DiffTry's effectiveness for two services in tandem, then generalize it to networks of services. Our theoretical framework lets practitioners quantify, for a given network, the resulting prioritization and rejection rates, and yields formal guarantees that DiffTry substantially reduces the impact of both incidental and adversarial orchestrated overloads. We validate these predictions in simulation and on a live Kubernetes deployment, where DiffTry is a simple drop-in service-mesh plugin requiring no application changes; the measured rejection closely matches the analysis.
I. INTRODUCTION
Cloud service providers have largely converged on microservice architectures, decomposing monolithic applications into hundreds, often thousands, of loosely coupled services [1], [2]. This paradigm allows each component (microservice) to scale elastically in response to demand, implementing capacity scaling, retries, timeouts, and circuit breakers autonomously.
While these mechanisms achieve high microservice independence and simplicity in design, their coordination is challenging and their operations can get miscoordinated. During periods of miscoordination, in particular, miscoordination of service capacity, some microservices may become overloaded due to their service capacity not up-scaled to the load generated by upstream services. Such overload periods may result in significant losses of transactions, due to their blocking/rejection by the downstream overloaded microservice.
The negative economic effects of such rejection periods are further compounded when they affect high-value (high-priority) transactions. These may include premium transactions (such as a customer with a loaded cart, or a preferred customer), mission critical transactions and others.
Two main overload-prevention methodologies are used in the literature and in practice: (i) local auto-scaling approaches (e.g., [3]), and (ii) network-wide centralized approaches (e.g., TopFull [4], which offers network-wide source throttling). Local auto-scaling reacts to overload by increasing resources at individual nodes. While it can respond quickly, it lacks a global view and therefore cannot address traffic miscoordination across services. Centralized approaches have such a global view, but require collecting network-wide information and are therefore slower to react. The resulting time gap can create temporary periods of miscoordination and overload, during which high-value transactions may still be rejected. Malicious users can exploit this weakness by injecting spikes of cheap low-value transactions, overloading critical microservices and causing mass rejections of innocent high-value traffic, thereby inflicting economic damage on the service [5].
In this paper, we propose DiffTry as a mechanism for service differentiation and load control using retries.
By embedding the prioritization logic directly into the retry process, DiffTry eliminates the need for explicit coordination or tight coupling between services. It effectively transforms retries into a distributed rejection-prioritization control, enabling systems to both prioritize critical flows and suppress retry amplification in a local, coordination-free, scalable manner.
During attacks, this may have a particularly critical effect, as it protects highly valued transactions from large volumes of attacking requests (naturally classified as low-priority tasks). Furthermore, without requiring explicit overload detection or sensor, the mechanism has an effect only under high-load or overload conditions and remains effectively silent otherwise.
To illustrate DiffTry under overload, consider a front-end Service A and a downstream Service B (Fig. 1). Requests are labeled by priority, either High (e.g., premium or latency-sensitive users) or Low (e.g., a bypassing user or batch job), and Service A retries them after timeouts or errors.
In classical retry mechanisms (a), when Service B becomes overloaded due to a traffic spike or scaling lag, Service A retries failed requests, ignoring priority. Thus, transactions are

(a) Same number of retry attempts: rejections of both high- and low-priority.
Goodput Increases

(b) DiffTry: differentiate retry limits, High-priority enjoy low rejection rates.
Fig. 1: DiffTry impact on retry behavior under overload.
rejected and delayed regardless of value. Although overload is often driven by low-priority traffic, and can be amplified by low-priority attack traffic, the main economic damage comes from degraded high-priority requests. In contrast, with DiffTry (b), high-priority requests receive more retry attempts, increasing their success probability and reducing their rejection rate to around 15%. This selective persistence significantly improves their goodput: even when both classes contribute 50% of the input load, high-priority transactions account for about 85% of successful completions, corresponding to a throughput improvement of about 70%. This tradeoff can be further enhanced by adding retries to high-priority requests.
B. Main Contributions: DiffTry Analysis and Results
Our paper focuses on establishing and analyzing the behavior of DiffTry. This should serve designers in (i) Gaining trust in this new machinery, (ii) Using the analysis to optimize the operations of DiffTry and plan the system performance.
We start by presenting the DiffTry mechanism, properties, and model in Sec. III. Then, we analyze a sub-system in which the upstream Service A sends traffic to the downstream Service B (Sec. IV). We first focus on the overload region, and using a fluid-model approximation we derive the per-stream rejections and throughput. We then consider the no-overload region, where rejection depends on the underlying queueing model. We show how queueing-specific blocking expressions can be plugged into our retry analysis, to derive the per-stream rejections; we demonstrate this on the M/M/1/m model. Simulation results demonstrate the model accuracy in Sec. V.
Having established the analysis for a single overloaded node we turn to deal with networks (Sec. VI). This is motivated by real microservice systems, which often contain tens or hundreds of services, e.g., Uber [1] and Netflix [2]. There are two key motivating questions behind this analysis: 1) Whether the plausible behavior (low rejections for high-priority transactions) derived for a single node would hold under an arbitrary network. In particular, could high-priority class enjoy low rejections in one node, but affect the traffic in a way that it will suffer high rejection rate on other (downstream) nodes. 2) Approximate the network rejections under DiffTry.
We adopt the well known open-network model [6], combined with flow classes/priorities, to model the traffic in the network. We then extend it to model DiffTry. By incorporating the rejection equations we generate a set of equations whose solution (computed in a simple iterative approach) yields the rejection rate of each priority class in each node. This allows deriving the end-to-end rejection rates. We further prove that the iterative approach is always guaranteed to converge to a solution and derive network rejection probabilities. We also investigate whether the solution is guaranteed to be unique (Sec. VI-E). We derive a set of conditions under which uniqueness is guaranteed. In particular it holds for a wide set of applications where the transaction flow graph is represented by a DAG (examples include Online Boutique [7] and WeChat [8]). For other cases, we prove uniqueness for some cases, but the general theoretical problem remains open in the context of this work; for those cases, we conduct an extensive set of experiments, all of which yield a unique solution.
We establish monotonicity results (Sec. VI-G) showing that network-wide class-level success rates increase monotonically with retry limits. This establishes the effectiveness of DiffTry as well as allowing establishing performance lower bounds.
Lastly, in Sec. VII we study DiffTry's network-level behavior numerically and validate it on a live Kubernetes deployment. There, DiffTry is a drop-in service-mesh plugin that needs no application-code changes, and the measured rejection closely matches our analysis, confirming that the local mechanism composes into network-wide prioritization on a real system. Concluding remarks are given in Sec. VIII.
II. RELATED WORK
Traffic and overload control are challenging in microservice systems due to miscoordination among independently autoscaled services. Prior work shows that uncoordinated scaling decisions can lead to instability and excessive cost under burst workloads [9], [10]. Several recent studies address these challenges using centralized control. For example, [4] performs top-down overload control at the application ingress, [11] uses an application-wide controller to set global performance and resource targets, and [12] relies on centralized request routing and traffic engineering across services and replicas.
In cloud systems, retry mechanisms are tied to service communication protocols, including HTTP [13] and RPC [14]. Major cloud providers integrate automated retry logic directly into client and service libraries [15], [16], and service mesh platforms provide built-in retry handling at the infrastructure layer [17], [18], [19], [20]; all with a constant limit per route.
Traditional priority mechanisms (e.g., [6]) are offered by cloud providers [21], [22], but their capabilities differ from DiffTry's. They attach the priority to the queue discipline, whereas DiffTry attaches it to the retry budget. They were designed to prioritize transaction processing and are applied at the service point (of Service B, in Fig. 1), where transactions exit the queue and enter service, as opposed to DiffTry, which is applied before queue entrance, at the rejection point. As such, unless coordinated with other mechanisms, they would have difficulties handling rejections. Also, in no-overload situations, they may unnecessarily starve low-priority transactions and inflict long delays. An alternative approach, consisting of prioritization of rejections at the entrance to Service B, would be challenging to implement as well, since it would require coordination with the buffer management of Service B.
Recently, major cloud providers and service-mesh platforms have warned that retries can trigger retry storms and lead to performance problems and security threats [23], [24], [25]. However, systematic analysis of retries under load remains limited, with only a small number of studies examining its impact on throughput and latency in microservice systems [26], [19]. DAGOR [8] also protects high-priority requests, but sheds at admission, requiring each server to sense overload and propagate its admission level upstream; RetryGuard [27] prevents retry storms, but without differentiating classes. DiffTry protects important jobs through the retry budget, needs neither overload detection nor coordination, and so acts immediately.
III. DiffTry: MECHANISM OPERATION AND MODEL
As illustrated in Fig. 1, the key idea of DiffTry is to assign different retry-attempt limits to requests from different priority classes. By doing so, DiffTry ensures that high-priority requests receive preferential treatment under overload, while, at the same time, suppresses retry storms. DiffTry is especially effective during miscoordination-induced overload periods and helps reduce the economic costs associated with it. It addresses three key problems in existing microservices applications:
-
Insensitivity to priority: High-priority requests are rejected as much as low-priority ones.
-
Retry amplification: Excessive retries inflate load and waste capacity and CPU.
-
Over-scaling: Retried low-priority traffic triggers unnecessary scaling, increasing cost.
This simple differentiation allows DiffTry to operate effectively across a range of conditions and it possesses the following properties: (1) During overload times, DiffTry shifts the mass of rejections caused by overload periods toward low-priority (non-latency-sensitive or non-revenue-critical) tasks, thereby protecting critical traffic. (2) During attack times, it significantly reduces the economic damages of an attack by preferentially rejecting low-priority requests that would otherwise overwhelm the system. (3) During no-overload times, the mechanism remains non-intrusive and does not interfere with normal traffic, while automatically becoming effective when overload conditions arise. (4) DiffTry is designed for distributed operation, without centralized coordination or explicit overload detection, and relying only on local retry decisions. (5) Through retry suppression, DiffTry limits excessive retries from low-priority flows, thereby reducing the risk of retry storms and stabilizing system behavior.
We formally model DiffTry as follows: Service A receives requests from P distinct sources where the arrival rate of class p is . It processes the incoming requests and forwards them to Service B (as in Fig. 1), whose processing rate is requests/sec. If Service B is unable to accept a request due to overload, Service A retains the request and retries it later.
Each flow is assigned a retry budget . This means that for every flow may retry a failed request up to times. Let denote the rate of requests from stream currently in their -th retry attempt, for and . A request of type is dropped permanently if it reaches its maximum retry budget without being successfully served. During the first attempts, it is eligible for retries, governed by the retry logic of Service A.
Using this model, we next study DiffTry's operation using a two-tier microservice system consisting of two services. In Sec. VI, we extend this model to account for an entire network.
IV. ANALYSIS OF DiffTry IN A SINGLE SERVICE
In this section we analyze DiffTry in a single service, derive its performance metrics, and show its ability to enforce prioritization and suppress retry amplification under load.
A. DiffTry Dynamics Under Overload (Fluid Model)
We first quantify the steady-state load and the rejection probability of an arbitrary request attempt under overload, when DiffTry is active. We use a fluid approximation, which allows us to capture the retry dynamics under overload (when rejection is mostly due to the bounded capacity and not due to finite buffers limitations), while abstracting away queueing details. The main advantage of the fluid model is twofold: It enables us to focus on the retry dynamics, and it ensures that the analysis is independent of the specific queueing discipline, covering a wide class of queueing models. We validate the accuracy of its results through simulations in Sec. V.
We assume the system is operating under persistent overload, i.e., . In this setting, the system reaches a steady state where requests are continuously dropped and retried, but the retry traffic stabilizes due to capped retry budgets. The total request load on Service B, including both original requests and retries, is given by:
We define the utilization (including retries) as and the pure utilization (excluding retries) as .
Let , respectively denote the success and rejection probabilities of a single request being served by Service B. They implicitly depend on the total presented load (original and retried), which affects the queueing behavior and acceptance rate. Our analysis is based on a simplifying approximation, an independence assumption, which will be validated
A fluid model approximates discrete request arrivals and services as continuous flows, capturing average system behavior through rates rather than individual jobs. Such models are commonly used to analyze large-scale or heavily loaded systems, where stochastic variability averages out [28], [29].
Unlike some of the classical models, where steady state exists only when , here the retry cap ensures a fixed bound on retry-induced load, similarly to finite-buffer queueing models [6].
via simulation (Sec. V-A) (and for extreme cases, relaxed on Sec. IV-D): We assume that the rejection probability is independent of its stage ; this is likely to hold if the delay between retry attempts is large enough relative to the service time, which is the case in cloud services [30], [31]. Under this assumption, retry flows follow a geometric progression, for . Thus, the overall arrival rate is:
Since Service B serves at rate while busy, then in steady state we have , where is the probability that Service B is idle. This gives:
The fluid approximation takes eq. (3) with equality, i.e. , neglecting the idle capacity. As is non-increasing in and vanishes as the load grows, it is accurate in the overload regime DiffTry targets. Thus we have two equations in two unknowns ( , ) which can be solved numerically. Practically, they translate into a single equation in one unknown :
Eq. (4) clearly admits a unique solution ; it quantifies how the retry budgets , arrival rates and capacity determine the system's rejection rate.
B. A More Detailed Model for No Overload
For completeness, and for the network analysis in Sec. VI, we next consider the no-overload regime. For , the fluid approximation would simply yield . Combining it with the analysis above yields a monotone continuous approximation, valid for the full range of operations. To obtain a more precise approximation, one can replace Eq. (3) with a (system dependent) queueing model to provide a continuous expression for the rejection probability as a function of : .
For example, for an queue, , which is the well-known blocking probability of the model [6]. Given , the corresponding rejection probability can be calculated by plugging this equation into Eq. (2) and solve for .
In order to guarantee a continuous approximation over the entire operating range, we combine the queueing-based model for with the fluid approximation for . If can be calculated given the queueing model, one can plug it to eq. (3). Otherwise, since is nondecreasing in , then is a lower bound for , so combine our bounds to define:
where whenever necessary. The resulting function is continuous and monotone; thus, replacing by in Eq. (2) yields a unified fixed-point equation.
C. Per-Stream Throughput and Rejection Rates
Once is solved numerically, we can now compute the contribution of each stream to the total load and the effective throughput. Let denote the total request rates from stream p, including both original and retry attempts. Using the geometric sum derived earlier, we get for every : . Each request attempt has a success probability . Thus, the expected successful completions rate for class p is: .
We now define the request success probability of class : , as the fraction of class- requests that are successfully served. Likewise, let denote the corresponding request reject probability: and .
This captures the tail behavior of each flow. Lower values sharply reduce the retry-induced load and limit the number of requests that persistently stress the system under overload.
D. Relaxing the Independence Assumption for Highly Variable Service Times
The model above assumes retries fail independently, which holds when the timeout exceeds the service time. Under highly variable service times a retry issued soon after a rejection may still meet the same long job, correlating failures. Conditioning on the residual R of that job, retries before it fail deterministically, while retries afterwards have a fresh probability since the queue renews. Writing for rejection on the initial attempt plus n retries and conditioning on R:
Which can be calculated recursively given :
.
For constant timeouts with memoryless service times (like an server), each interval has the same chance , collapsing the equation to
When , the blocking job completes before the next retry attempt, giving the independence assumption, . Smaller values represent stronger correlation, as retries are more likely to observe the same blocking job.
V. EXAMINATION OF DiffTry IN A SINGLE-SERVICE
We next examine DiffTry in a single-service setting, with three objectives: (i) Evaluate the accuracy of the independence assumption and the fluid approximation (see Sec. IV-A). (ii) Examine how effective are the retry-limits in prioritizing rejections across classes at overload situations. (iii) Examine DiffTry in no-overload situations. We use two examination machineries: a discrete-event simulation of an M/M/1/m system with retries, and numerical evaluation of both the M/M/1/m model and the fluid model. We validate the simulator against the exact M/M/1/m numerical evaluation, and assess the fluid

(a)

(b)
Fig. 2: Simulation VS Analytic: Rejection probability of original requests with DiffTry in a single M/M/1/50 service.
approximation by comparing it to the M/M/1/m evaluation. The code of the simulations is available in [32].
A. Examination in typical cases: Accuracy and Effectiveness
We aim at evaluating the model in typical situations. We consider a system as in Sec. IV and in Fig. 1, and assume that the buffer of Service B has room for 50 tasks; we expect that in typical application this number will be in the order of 10s or 100s. We further assume that the retry timeout lasts in the order of several service times (of Service B).
Fig. 2 validates the model across retry budgets: we fix , vary , and sweep the offered load via (with fixed). The simulation closely matches both the and fluid-model derivations, supporting our approximations.
Beyond validating the approximations, Fig. 2 shows two central effects. First, increasing the low-priority retry budget increases the volume of retry traffic and aggregate load, demonstrating retry-amplification (storm). Second, DiffTry enforces prioritization: across traffic mixes, the class with the larger retry budget has substantially lower ultimate rejection probability, while the lower-priority class absorbs most losses.
B. Examination of the model in extreme cases
By eq. (3), the fluid approximation errs by above capacity, and below it by the whole rejection, since it assumes for . For both are largest at ; the error is therefore at most everywhere, and shrinks geometrically in away from criticality. Fig. 3 evaluates this failure mode by comparing two buffer sizes. In the small-buffer setting ( , Fig. 3(b)), is not small, so rejection is already non-negligible below overload, causing the fluid model to deviate near . The combined approximation addresses this by using the exact rejection for and transitioning to the overload lower bound for (Eq. (5)), yielding a closer match where the fluid approximation is least reliable. We stress that DiffTry primarily targets cloud microservices, where is in the tens or hundreds and is correspondingly negligible, making the fluid approximation accurate (Fig. 3(a)). Nevertheless, below-overload rejection may arise with small buffers or effective capacity reductions, e.g., transient contention or scheduling

(a) Typical (cloud-like) buffer size

(b) Atypical (corner case) buffer size
Fig. 3: Model behavior near the critical load .

(a) low variance

(b) high variance
Fig. 4: low retry timeouts ( ), high/low variance ( )
effects. In such cases, the mixed approximation improves robustness while preserving tractability (Fig. 3(b)).
To probe the residual correction of Sec. IV-D, we examine the regime it is designed for: a small retry timeout, so a retry can strike the same still-blocking job. Fig. 4 reports the per-class rejection in this short-timeout regime under (a) low and (b) high service-time variance; we induce high variance with a two-phase (hyper-exponential) service in which a job is 'long' with probability (mean service larger) and 'short' otherwise. With low variance the correction is small (it stems from the short timeout alone) and the residual model matches the simulation. With high variance (or low retry timeouts) the independence assumption breaks (correlated failures), yet the residual model still tracks the simulated rejection. We also tested many variances and smaller timeouts; all gave similar results. Hence even in this adversarial corner, our residual model accurately predicts the rejection rate.
VI. ANALYSIS OF DiffTry ON A GENERAL NETWORK
The analysis provided above dealt with the application of DiffTry in two interacting services. A general system may consist of a network of tens/hundreds of services (e.g., TopFull [4]). While the application of DiffTry is local to these two services its effects may propagate through the network. Therefore an analysis of DiffTry over a general network is needed.
To conduct the analysis we adopt the standard open network flow model (as used in Jackson networks [33], [6], and in more general open network models, including priorities [34]). We then generalize that model to accommodate the DiffTry equations; their non-linearity makes the analysis non-trivial.
A. The Standard Network Flow Model
Under the standard open network flow models the network of services consists of N services (nodes). External traffic of transactions (jobs) enters node i at rate . In Jackson networks it is further assumed that is Poisson. Since our analysis deals only with rates we do not require this assumption.
We further assume that the jobs are divided into classes ; let denote the external arrival rate of class to node . After completion of job at node , a fraction is directed to service , where ; a fraction terminates and leaves the system. The total rate of class jobs entering node is denoted by and is given by the equation set (known as the traffic equations):
It may be convenient to use vector notation terminology where and are vectors of size NP holding the and variables, respectively, and , called the routing matrix, is a matrix whose dimension is . Then Eq. 6 is expressed as . Deriving the set of arrival rates for all and requires solving this linear equation set. This leads to the solution . It is well known that this equation set can be solved by iterating it on the vector :
A standard sufficient condition for the convergence of this sum (and, subsequently, for Eq. (6) to have a solution) in open queueing networks is that the spectral radius of the routing matrix (which is also assumed to be substochastic) satisfies , which ensures that the fundamental matrix exists and the traffic equations admit a unique nonnegative solution [33].
B. Generalizing the Standard Model to Accommodate DiffTry
To extend the model, we distinguish between the roles of on the left- and right-hand sides of Eq. (6). Let and denote the input and output rates of service , respectively. Eq. (6) becomes:
Now, for each service the differential retry mechanism will enter into effect as in Sec. IV. We denote the limit on the number of retries for node and for class as . That is, differential rejections (resulting from differential retries) will operate on the set of priorities. As described in Sec. IV, can be derived from the input parameters of this service: where we use vector notations: (and similarly ), . Consequently, the rate at which class is processed at microservice is simply given by
Eqs. (8) - (9) form an equations set in 2NP unknowns ( , ), whose solution will provide the resulting transaction rates in our system. This equation set is non-linear and thus its solution, which we establish next, is not immediate.
C. Solving for the transaction rates for DAG Networks
In a DAG, the system of equations (8) and (9) can be solved via a single forward pass along any topological order. When processing node , the output rates ; of all predecessors are already known, allowing for the direct evaluation of the input vector ; via (8). Using ; alongside the local parameters and , we subsequently compute and the corresponding output rates via (9). This acyclic dependency ensures the procedure yields a solution and terminates in a single pass. Furthermore, by induction, local uniqueness at each node (Sec. IV) guarantees uniqueness. Note that it is independent of the topological order chosen.
D. Solving for the Transaction Rates in General Networks
The methods of Sec. VI-C might not work for graphs containing cycles. Therefore, in this subsection we provide a general solution: We propose to use an iterative method on the unknown variables, similarly to the standard iteration used on standard open queueing networks, and given in Eq. (7). To overcome the non-linearity, we propose to solve, on each iteration, for as given in Sec. IV. This solution is performed in each iteration since depends on the values of the vector, which change over the iterations. For the sake of the analysis we will denote the iteration number by and the corresponding and as and , respectively.
We next establish that this process converges by comparing it to the standard equation set given by Eq. (6) , showing that if eq. (6) is solvable (converges) then Equation set (8) – (9) is also solvable (converges) via an equivalent iterative procedure.
Theorem 1. Under the conditions in which eq. (6) has a solution (e.g. via an iterative procedure given by Eq. (7)) then Equation set (8) – (9) has also a solution.
Outline of Proof. The proof is carried out using an iterative solution and establishing its convergence. Transforming eqs. (8) – (9) into iteration-index (t) dependent, and substituting them allows re-writing them in the format of eq. (6):
where , and is the eventual success probability. In vector form this gives:
Having a solution to the equations does not imply stability of the system queues, which depends on their service rates.
In fact, this is a special case of our system, whereby there are no rejections
Where is a matrix of size expanded with zeros to get a matrix. The key point of the proof is that is a probability, and therefore obeys , which leads to the proof.
E. Uniqueness of the Solution for cyclic graphs
In the previous subsection we showed that the network equations converge, and accordingly the rejection probability of each edge can be derived. While uniqueness for DAG topologies was proved, for general networks with cycles, uniqueness is non-trivial. The standard traffic equations (6) are linear and admit a unique solution whenever ; However, the DiffTry equations (8)–(9) are nonlinear—the effective routing weights depend on the solution itself through the shared per-node rejection probability . Note that when all retry budgets are equal, this coupling vanishes and the system reduces to a single-priority linear network; however, differentiated budgets break this structure, and uniqueness requires a separate analysis.
We establish uniqueness by first proving it for two important cases (Thm. 2 next), and then providing support through numerical validations of the general case.
- uniqueness proof: Theorem 2 states the results.
Theorem 2 (Sufficient conditions for a unique solution). The equation set (8)–(9) has a unique nonnegative solution under either of the following conditions:
-
-
The routing is class-independent for all and .
Condition (1) can be applied widely to applications with two priority classes (which we expect to be the most common implementation of DiffTry). Under the condition means that for all , implying that a fraction of the transactions must leave in each node. In practice, it is possible that for some nodes, say , . However, for such cases one could slightly "tweak" the system by subtracting from one of the entries in row , implying tiny departure at node , which will provide a unique solution. Such "tweak" is not expected to affect system performance for practical (not ill conditioned) systems. Condition (2) captures systems in which routing does not differentiate by class, e.g. when DiffTry is layered onto an existing non-prioritized application.
Outline of Proof. Define the map , where encodes the DiffTry transformation: the output rate of class at node after applying the retry mechanism. Any solution to (8)–(9) is a fixed point , so it remains to show has at most one fixed point.
General uniqueness criteria. Since , then using the submultiplicativity of induced operator norms, if is L-Lipschitz and (in some norm), then is a strict contraction, and the Banach Fixed-Point Theorem yields a unique fixed point. The two conditions of Thm. 2 correspond to two ways of establishing .
Bounding the Lipschitz constant of . The map is defined piecewise: (i) for simplicity, we assume that in the no-overload region it acts as the identity, so it is trivially 1-Lipschitz. (ii) In the overload region , the per-attempt rejection probability is implicitly given by (and the constants) through eq. (4), so is a smooth function of . Implicit differentiating with respect to yields a Jacobian matrix satisfying and , since its maximum row and column sums are bounded by and 2, respectively. (iii) For in different regions and , we need to show that . Let be the intersection of with . The triangle inequality applied to the two resulting subsegments, each lying entirely within one region, recovers the same global bound. These per-node bounds extend directly to the global operator under or , with the same Lipschitz constant for any choice of weights.
Bounding for Condition (1). The Lipschitz bounds above give in and the hypotheses directly give the criteria for uniqueness.
Bounding for Condition (2). In principle, (which holds for any open network) already guarantees the existence of a weighted norm in which . however, the resulting weights live in , one per coordinate, whereas the Lipschitz bound on is established blockwise, with only N weights, one per node, applied uniformly across the P classes of each block. This is where class-independence is essential: the matrix F is (up to a permutation) block-diagonal with P identical copies of the scalar routing matrix , so . Because , one can therefore find N weights from alone and use them uniformly across all classes to define a valid blockwise norm in which . Since is 1-Lipschitz ( ), uniqueness follows.
- Numerical verification: Uniqueness beyond the above conditions remains open. To examine it empirically, we generated tens of thousands of cyclic networks using the Bench and DGG graph generators [35], [36], and for each we tested hundreds of parameter configurations and thousands of distinct initializations , amounting to roughly 60 million cases across priority classes. In no instance did the fixed-point iteration converge to two distinct solutions, providing strong empirical evidence that uniqueness holds universally.
F. Transaction (job) Completion Probability
In practice, one may want to derive the probability that a job completes its path through the network. Let denote the success probability of any class job entering node , which can be derived according to subsection VI-D.
Choose with . Therefore , so the Neumann-series converges and . Setting gives . Thus, gives .
In fact, such tiny transaction departures are naturally expected in any node due to natural transaction failures.
In some cases, one may know for a specific job the full path it will traverse in the network. In that case the job completion probability will be the product of its success rates over the hops it traverses. Let denote the successful completion probability of a job traversing nodes and leaving the system. So, we get: .
In other cases, the full path might not be known in advance. In this case, let denote the (network) successful completion probability of a class job that starts at node . This can be derived recursively from the probability to leave the system at and from the completion probabilities of the downstream neighbors of . To this end, let denote the fraction of class jobs that leave the system at node . Using the definition , we get:
Now, using a vector terminology, where and are treated as vectors of size , we get . Assuming the original network is solvable, eq. (12) is solvable and given by
Finally, we derive the total completed-transactions rate:
Where the last equality is because for each class p the total rate of jobs arriving on the system and completing successfully must be equal to the total rate of jobs leaving the system.
G. System-Wide Monotonicity of DiffTry
DiffTry prioritizes class p by granting it more retries; in Sec. V this was shown to be rather effective for a single node. The question addressed here is whether it is effective in the context of a full network of services where the retry mechanism of a node affects (through cyclical flows) its input streams in an unknown way. We establish this effectiveness by establishing the monotonicity of the network converged solution (node input rates) in the retry budgets.
Definition 1 (p-dominance). For and a class , p-dominates (written ) if and for all nodes and classes . A map is dominance preserving if for every .
Through this subsection, a superscript marks a quantity evaluated at a fixed point.
Theorem 3 (System-wide monotonicity of fixed-points in the retry budgets). fix a class and budgets . When the two systems run from any initial loads they converge to fixed points satisfying:
giving consistent dominance of the prioritized system over the original, even as the load shifts between stages.
Outline of Proof. We show each part preserves dominance: the node map , the single iteration T, and its fixed point.
Single node. An overloaded node shares a fixed rate of successful jobs, , across all classes. Increasing retries (or input) allows class p to claim a larger share at the expense of others; thus, preserves dominance in k and .
Single iteration. T mixes these accepted rates by routing, and since a (non-negative) mixture of -ordered vectors stays -ordered, then T preserves dominance in both k and .
Fixed points. Start the two iterations from , each iterative step preserves -dominance (apply the single iteration step in , then in ), so for all . Being coordinatewise, the ordering survives to the limit, giving dominance in and .
Completion rate. is a nonnegative-weighted sum of the accepted rates, with weights fixed by routing alone. The ordering on therefore carries through to .
Starting both iterations at the same point or gives:
Corollary 1. For every fixed point of there exists a fixed point of , satisfying (15), and symmetrically with the roles reversed. In particular, if either system has a unique fixed point, (15) holds for every fixed point of the other.
Remark 1 (Effective prioritization in networks). Since a class-equal budget has a unique fixed point, Thm. 3 compares any DiffTry equilibrium against that baseline: prioritizing class p raises its per-node successful transactions and its total completion rate relative to no prioritization, even when the DiffTry equations admit multiple fixed points.
VII. NETWORK-LEVEL EVALUATION AND EXPERIMENTAL DEPLOYMENT IN A LARGE KUBERNETES NETWORK
To examine how DiffTry yields end-to-end differentiation in realistic networks, we evaluate it on DeathStarBench [37], [38], a widely used microservice benchmark, using its hotelReservation application (Fig. 5(a)). We study DiffTry in two ways: (i) Numerically, by solving the network model of Sec. VI, and (ii) Experimentally, on a live Kubernetes deployment with service mesh. We ask two questions: Does DiffTry's local, per-node mechanism compose into a network-wide prioritization, and how well does the analysis predict a real system?
A. Experiment and numerical examination Setup
We consider two classes , high- and low-priority; external arrivals enter at the gateway/front-end. We fix and, to model an attacker that floods the network (DDoS) with cheap low-priority requests, sweep (at 250 the total offered load reaches ). Service capacities are calibrated so that, without rejection, node utilization is . We compare DiffTry with against a no-prioritization baseline with symmetric . The code is available [32].
We also tested several utilization values, and higher maximum loads; all gave similar outcomes. Capacity is enforced by rate limiters.

(a) DeathStarBench Dependency graph (from [37])

(b) Per-class network rejection: numerical VS experiment

(c) Median latency: Protection against retry Storm

(d) Internal RPC calls per external request
Fig. 5: DiffTry on live kubernetes deployment (DeathStarBench hotelReservation) - DiffTry protects high-priority traffic, suppresses the flood's retry-storm latency, and improves efficiency
Numerically, we solve the network fixed point (Sec. VI) for each and report the network-level rejection of a class-p request entering the front end.
Experimentally, we deploy hotelReservation on Kubernetes with the Istio/Envoy service mesh [17], representative of the service-mesh platforms, which are now widely adopted in production microservice deployments [39]. We realize DiffTry entirely as a service-mesh plugin: a small, stateless Envoy filter that, at every sidecar, reads the request's priority (carried in a propagated context header) and sets that hop's retry budget to the class value. Crucially, this is a drop-in plugin that any existing mesh can adopt with no changes to application code. Although the theoretical model relies on probabilistic routing, our physical experiment uses the application's native fan-out.
B. Experiment and numerical examination results
- End-to-end rejection rate (Fig. 5(b)): Without prioritization, a high-value request is rejected almost as heavily as the attacking flood ( under overload). DiffTry reduces the high-priority rejection rate by an order of magnitude under moderate overload ( at ), and still by at the heaviest flood ( , from to ), while the rejection of the low-priority flood rises only slightly (to ). DiffTry thus induces a clear and persistent end-to-end differentiation between the classes.
Crucially, the measured rejection on the live experiment tracks the numerical fixed-point prediction ( difference), confirming that the local per-node mechanism manifests as a network-wide effect on a real system that the analysis predicts well. Below capacity ( ) both classes see rejection, so DiffTry is silent when the system is not overloaded, consistent with the single-service results of Sec. V.
- Latency and resource consumption (Fig. 5(c,d)): Without prioritization, the uniform retries back the over-offered flood up into a retry storm whose median latency reaches ms. DiffTry caps the low-priority budget so the flood fails fast, collapsing its latency to ms, and the high-priority latency to ms ( lower than baseline) – the intrinsic cost of its retries. Thus DiffTry drastically decreases the latency of both classes far below the baseline.
DiffTry adds negligible overhead—a single, stateless retry-budget filter—and instead reduces the mesh’s internal work. Each external request fans out to internal gRPC calls; under overload the uniform retries inflate this to RPCs per request, whereas DiffTry drives it below the fan-out floor, to : the flood fails fast at the first congested service and never issues the deeper downstream calls. Per successfully served request the gap widens further ( vs ). Because rejection is enforced by rate limiters, before a request reaches the service logic, CPU and memory stay comparable.
- Conclusions: These results reproduce, on a real deployment, the prioritization and protection predicted by the analysis. Equally important, they show that DiffTry is trivial to adopt using a simple low-overhead service-mesh plug-in.
VIII. Conclusions
We introduced DiffTry, a distributed, stateless mechanism that embeds priority into retry logic, turning retries into a tool for differentiating request rejections under overload without explicit overload signaling or inter-service coordination.
We developed an analytical framework that lets practitioners quantify the prioritization behavior and rejection rates. We proved convergence of its solution and established conditions and evidence for uniqueness, including DAG service graphs. We further proved monotonicity of class-level success rates in the retry limits, establishing DiffTry's effectiveness and performance bounds even without guaranteed uniqueness.
We validated the analysis both numerically at the network level and on a live Kubernetes/Istio deployment, where DiffTry is a drop-in service-mesh plugin whose measured per-class rejection matches the numerical prediction, requires no changes to application code, and incurs negligible overhead.
REFERENCES
[1] Uber Engineering, "Up: Portable microservices ready for the cloud," https://www.uber.com/blog/up-portable-microservices-ready-for-the-cloud/, 2023, online.
[2] R. Whitener, “Inside netflix’s aws strategy: Cost efficiency at scale,” https://www.cloudzero.com/blog/netflix-aws/, 2025, online.
[3] Kubernetes, “Horizontal pod autoscaling,” https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/, 2025, online.
[4] J. Park, J. Park, Y. Jung, H. Lim, H. Yeo, and D. Han, “Topfull: An adaptive top-down overload control for slo-oriented microservices,” in Proc. of ACM SIGCOMM’24, 2024.
[5] M. Sides, A. Bremler-Barr, and E. Rosensweig, “Yo-yo attack: Vulnerability in auto-scaling mechanism,” SIGCOMM Comput. Commun. Rev., vol. 45, no. 4, p. 103–104, Aug 2015.
[6] L. Kleinrock, Queueing Systems. Volume I: Theory. New York: Wiley-Interscience, 1975.
[7] Google Cloud Platform (github), “Google Online Boutique: A Microservices Demo Application,” https://github.com/GoogleCloudPlatform/microservices-demo, 2025, accessed: 2025-06-19.
[8] H. Zhou, M. Chen, Q. Lin, Y. Wang, X. She, S. Liu, R. Gu, B. C. Ooi, and J. Yang, “Overload control for scaling wechat microservices,” in Proc. of ACM SoCC’18, 2018.
[9] S. Luo, H. Xu, C. Lu, K. Ye, G. Xu, L. Zhang, Y. Ding, J. He, and C. Xu, “Characterizing microservice dependency and performance: Alibaba trace analysis,” in Proc. of ACM SoCC’21, 2021.
[10] S. Xie, J. Wang, B. Li, Z. Zhang, D. Li, and P. C. Hung, “Pbscaler: A bottleneck-aware autoscaling framework for microservice-based applications,” IEEE Transactions on Services Computing, vol. 17, no. 2, pp. 604–616, 2024.
[11] Z. Wang, P. Li, C.-J. M. Liang, F. Wu, and F. Y. Yan, “Autothrottle: A practical Bi-Level approach to resource management for SLO-Targeted microservices,” in Proc. of USENIX NSDI’24, Apr. 2024.
[12] G. Lim, A. Prerepa, B. Godfrey, and R. Mittal, “Opportunities and challenges in service layer traffic engineering,” in Proc. of ACM HotNets’24, 2024.
[13] D. Yu, Y. Jin, Y. Zhang, and X. Zheng, “A survey on security issues in services communication of microservices-enabled fog applications,” Concurrency and Computation: Practice and Experience, vol. 31, no. 22, p. e4436, 2019.
[14] N. Lazarev, S. Xiang, N. Adit, Z. Zhang, and C. Delimitrou, “Dagger: efficient and fast rpcs in cloud microservices with near-memory reconfigurable nics,” in Proc. of ACM ASPLOS’21, 2021.
[15] S. Mathew and J. Varia, “Overview of amazon web services,” Amazon Whitepapers, vol. 105, pp. 1–22, 2014.
[16] R. Caron, “Using the retry pattern to make your cloud application more resilient,” Microsoft Azure Blog. https://azure.microsoft.com/en-us/blog/using-the-retry-pattern-to-make-your-cloud-application-more-resilient/, 2018, online; accessed 2025.
[17] Istio, “Traffic management: Retries,” https://istio.io/latest/docs/concepts/traffic-management/#retries, 2025, online; accessed 2025.
[18] Linkerd, “Configuring retries,” Linkerd Documentation (v2.15). https://linkerd.io/2.15/tasks/configuring-retries/, 2025, online; accessed 2025.
[19] M. R. Saleh Sedghpour, C. Klein, and J. Tordsson, “An empirical study of service mesh traffic management policies for microservices,” in Proc. of ACM/SPEC ICPE’22, 2022.
[20] S. Ashok, P. B. Godfrey, and R. Mittal, “Leveraging service meshes as a new network layer,” in Proc. of ACM HotNets’21, 2021.
[21] Google Cloud, “Introducing request priorities for cloud spanner apis,” https://cloud.google.com/blog/topics/developers-practitioners/introducing-request-priorities-cloud-spanner-apis, 2021.
[22] Lunar, “Priority queue for microsoft 365 api requests,” https://www.lunar.dev/flows/priority-queue-for-microsoft-365-api-requests, 2025, online; accessed 2025.
[23] Microsoft, “Retry storm antipattern,” Microsoft Learn: Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/antipatterns/retry-storm/, 2025, online; accessed 2025.
[24] A. H. Dave Rensin, “How to avoid a self-inflicted ddos attack—cre life lessons,” https://cloud.google.com/blog/products/gcp/how-to-avoid-a-self-inflicted-ddos-attack-cre-life-lessons, 2016, accessed: 2024-04-22.
[25] J. Tavori, A. Bremler-Barr, and H. Levy, “The cost of retrying: Exploiting retry-mechanisms in cloud applications by ddos attacks,” in Companion of Proc. of ACM CoNEXT’23, 2023.
[26] N. C. Mendonca, C. M. Aderaldo, J. Camara, and D. Garlan, “Model-based analysis of microservice resiliency patterns,” in Proc. of IEEE ICSA’20. IEEE, 2020.
[27] J. Tavori, A. Bremler-Barr, H. Levy, and O. Lavi, “Retryguard: Preventing self-inflicted and attack-driven retry storms in cloud applications,” 2026. [Online]. Available: https://arxiv.org/abs/2511.23278
[28] R. Lenin and P. Parthasarathy, “Fluid queues driven by an m/m/1/n queue,” Mathematical Problems in Engineering, vol. 6, no. 5, pp. 439–460, 2000.
[29] D. Gamarnik, J. N. Tsitsiklis, and M. Zubeldia, “Delay, memory, and messaging tradeoffs in distributed service systems,” ACM SIGMETRICS Performance Evaluation Review, vol. 44, no. 1, pp. 1–12, 2016.
[30] M. A. Bender, J. T. Fineman, S. Gilbert, and M. Young, “Scaling exponential backoff: constant throughput, polylogarithmic channel-access attempts, and robustness,” Journal of the ACM (JACM), vol. 66, no. 1, pp. 1–33, 2018.
[31] Amazon Web Services, “Retry with backoff pattern,” https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/retry-backoff.html, 2025, online; accessed 2025.
[32] Anonymous, “DiffTry: Artifact for double-blind review,” https://anonymous.4open.science/r/DiffTry, 2026, anonymized code; online.
[33] F. P. Kelly, Reversibility and Stochastic Networks. Chichester, UK: John Wiley & Sons, 1979.
[34] F. Baskett, K. M. Chandy, R. R. Muntz, and F. G. Palacios, “Open, closed, and mixed networks of queues with different classes of customers,” Journal of the ACM, vol. 22, no. 2, pp. 248–260, 1975.
[35] mSvcBench, “ubench: A factory for benchmarking microservice applications,” https://github.com/mSvcBench/muBench, 2025, online.
[36] F. Du, J. Shi, Q. Chen, L. Li, and M. Guo, “A microservice graph generator with production characteristics,” arXiv:2412.19083, 2024.
[37] delimitrou, “DeathStarBench: Open-source benchmark suite for cloud microservices,” https://github.com/delimitrou/DeathStarBench, 2026, accessed: 2026-01-11.
[38] Y. Gan, Y. Zhang, D. Cheng, A. Shetty, P. Rathi, N. Katarki, A. Bruno, and et al., “An open-source benchmark suite for microservices and their hardware-software implications for cloud & edge systems,” in Proc. of ACM ASPLOS’19, 2019.
[39] Cloud Native Computing Foundation (CNCF), “Service meshes are on the rise—but greater understanding and experience are required,” https://www.cncf.io/wp-content/uploads/2022/05/CNCF_Service_Mesh_MicroSurvey_Final.pdf, 2022, online; accessed 2025.