Papers
Topics
Authors
Recent
Search
2000 character limit reached

Service Affinity in Scheduling and Placement

Updated 10 July 2026
  • Service affinity is a scheduling paradigm where workload-to-resource matching depends on explicit affinity signals, ensuring system stability and minimized delays.
  • Methodologies range from queueing-theoretic models to graph-based and declarative frameworks, each optimizing key performance metrics such as throughput, latency, and resource utilization.
  • Practical applications include cloud-native systems, microservices, serverless deployments, and edge computing, where tailored scheduling policies improve overall efficiency.

Searching arXiv for recent and foundational papers on service affinity across scheduling, microservices, serverless, and edge placement. Service affinity denotes a class of scheduling and placement problems in which the desirability or feasibility of assigning work to a resource depends on a relation between the workload entity and the execution site. In queueing-theoretic formulations, it is the problem of dynamically assigning typed tasks to servers whose processing capabilities differ by task type so that the system is stable for all admissible loads and delays remain small near saturation (Yekkehkhany et al., 2017). In cloud-native and serverless systems, it is expressed through communication intensity, co-location and anti-affinity rules, privacy or functional tags, and hardware or location requirements that shape microservice, function, or agent placement (Dinh-Tuan et al., 6 Sep 2025, Palma et al., 2024, Zheng et al., 5 Jan 2026). The common structure is a constrained mapping problem: affinity alters the effective service rate, communication cost, feasibility region, or all three simultaneously.

1. Queueing-theoretic foundations

The classical service-affinity problem is a heterogeneous queueing system with servers M={1,,M}M=\{1,\dots,M\}, task types I={1,,I}I=\{1,\dots,I\}, arrival processes Ai(t)A_i(t), and type-server service rates μi,j>0\mu_{i,j}>0. In the generic model summarized for GB-PANDAS, service times are non-preemptive, arbitrarily distributed with mean 1/μi,j1/\mu_{i,j}, and queue dynamics are

Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).

A necessary and sufficient stability condition is the existence of a decomposition λi,j0\lambda_{i,j}\ge 0, jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i, such that

i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,

which defines the capacity region CC (Yekkehkhany et al., 2017).

This formulation specialized naturally to data locality in large data centers. In MapReduce-style systems, a task is machine-local, rack-local, or remote depending on where its data block resides, with service parameters I={1,,I}I=\{1,\dots,I\}0 and corresponding mean service times I={1,,I}I=\{1,\dots,I\}1 (Kavousi, 2017). A related large-scale service-system model assigns each job type I={1,,I}I=\{1,\dots,I\}2 a primary server subset I={1,,I}I=\{1,\dots,I\}3 and a secondary subset I={1,,I}I=\{1,\dots,I\}4; primary service occurs at rate I={1,,I}I=\{1,\dots,I\}5, secondary service at rate I={1,,I}I=\{1,\dots,I\}6 with I={1,,I}I=\{1,\dots,I\}7. The dispatcher first seeks an idle primary server, then an idle secondary server, and otherwise sends the job to the lexicographically shortest primary queue, while servers give preemptive priority to primary jobs (Cardinaels et al., 2018).

The analytical objectives have remained stable across these variants. Throughput-optimality requires positive recurrence whenever the arrival-rate vector lies strictly inside the capacity region. Heavy-traffic optimality studies sequences I={1,,I}I=\{1,\dots,I\}8 on the boundary and asks whether the policy minimizes I={1,,I}I=\{1,\dots,I\}9 to first order under diffusion scaling (Yekkehkhany et al., 2017). This framing explains why affinity is not merely a locality heuristic: it is a structural modification of the service process, and hence of both stability and delay.

2. Formal representations of affinity

Across the literature, service affinity is represented in several mathematically distinct but structurally related ways.

Setting Affinity representation Optimization target
Queueing and data locality Ai(t)A_i(t)0, Ai(t)A_i(t)1, primary/secondary sets stability and delay
Microservice placement Ai(t)A_i(t)2, Ai(t)A_i(t)3, cut weights minimum cross-domain cut
Serverless and cluster provisioning Ai(t)A_i(t)4, Ai(t)A_i(t)5, Ai(t)A_i(t)6, Ai(t)A_i(t)7 latency, feasibility, node minimization
Edge agent placement Ai(t)A_i(t)8 feasible low-hop embedding

In graph-based microservice systems, affinity is an edge weight. SAGA defines five primitive metrics over a sliding window Ai(t)A_i(t)9: data affinity μi,j>0\mu_{i,j}>00, coupling affinity μi,j>0\mu_{i,j}>01, privacy affinity μi,j>0\mu_{i,j}>02, functional affinity μi,j>0\mu_{i,j}>03, and operational affinity μi,j>0\mu_{i,j}>04. Raw service affinity is a weighted sum

μi,j>0\mu_{i,j}>05

followed by min-max normalization to obtain edge weights μi,j>0\mu_{i,j}>06 in a Service Affinity Graph μi,j>0\mu_{i,j}>07 (Dinh-Tuan et al., 6 Sep 2025). DREAMS adopts the service-affinity notion introduced in SAGA but uses a streaming-window form in which, for microservices μi,j>0\mu_{i,j}>08 and μi,j>0\mu_{i,j}>09, 1/μi,j1/\mu_{i,j}0 combines communication rate, dependency, and tunable weights 1/μi,j1/\mu_{i,j}1 that can incorporate data privacy, resource sharing, or domain-specific factors (Dinh-Tuan et al., 9 Sep 2025).

In serverless systems, affinity is often a hard logical predicate. The aAPP model associates each function tag 1/μi,j1/\mu_{i,j}2 with an affine set 1/μi,j1/\mu_{i,j}3 that must already appear on the same worker and an anti-affine set 1/μi,j1/\mu_{i,j}4 that must not appear there. A worker 1/μi,j1/\mu_{i,j}5 is affinity-valid for function 1/μi,j1/\mu_{i,j}6 with tag 1/μi,j1/\mu_{i,j}7 exactly when

1/μi,j1/\mu_{i,j}8

(Palma et al., 2024). In shared-cluster provisioning for long-running applications, affinity is a directed restriction graph 1/μi,j1/\mu_{i,j}9 with parameters Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).0, where Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).1 is the maximum number of replicas of Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).2 that may co-locate on a node if at least one replica of Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).3 is there (Mommessin et al., 2022).

These formulations differ in algebraic form—service-rate matrices, graph weights, Boolean co-location predicates, hardware-label constraints—but all encode non-exchangeability. A resource is not simply “faster” or “slower” in the abstract; it is better or worse for a particular workload entity.

3. Affinity scheduling in data centers and service systems

The affinity-scheduling literature developed a sequence of algorithms that trade off practicality, information requirements, and optimality guarantees. Early approaches with theoretical guarantees included fluid model planning, the MaxWeight algorithm, and the generalized Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).4-rule, but these were described as impractical for data center applications because of non-realistic assumptions (Yekkehkhany et al., 2017). In MapReduce data-locality systems, the same tension appears between heuristic methods such as Delay Scheduling and Quincy, and algorithms with explicit throughput or heavy-traffic guarantees (Kavousi, 2017).

GB-PANDAS addresses the multi-level locality case with Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).5 locality levels and service-rate parameters Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).6. Each server Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).7 keeps sub-queues Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).8, and its expected workload is

Qi,j(t+1)=Qi,j(t)+Ai,j(t)Si,j(t).Q_{i,j}(t+1)=Q_{i,j}(t)+A_{i,j}(t)-S_{i,j}(t).9

Upon arrival of a task of type λi,j0\lambda_{i,j}\ge 00, routing uses the weighted-workload rule

λi,j0\lambda_{i,j}\ge 01

and scheduling is strict priority from λi,j0\lambda_{i,j}\ge 02 to λi,j0\lambda_{i,j}\ge 03 (Yekkehkhany et al., 2017). Throughput optimality is proved by augmenting the state to λi,j0\lambda_{i,j}\ge 04, choosing the Lyapunov function λi,j0\lambda_{i,j}\ge 05, and establishing a negative λi,j0\lambda_{i,j}\ge 06-step drift: λi,j0\lambda_{i,j}\ge 07 The proof uses a workload evolution equation, a routing lemma, a service lemma over λi,j0\lambda_{i,j}\ge 08 slots, and an age lemma (Yekkehkhany et al., 2017).

The algorithmic significance lies in the assumptions it avoids. GB-PANDAS is proved throughput-optimal for arbitrary service-time distributions, whereas much previous theoretical work assumed geometric service times. In simulations on a 5,000-server cluster with 4 locality-levels, log-normal service times with λi,j0\lambda_{i,j}\ge 09, jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i0, jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i1, and jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i2, and comparisons against FCFS, JSQ-Priority, and JSQ-MaxWeight, GB-PANDAS halved the mean completion time relative to JSQ-MaxWeight under high load, with up to jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i3 improvement at jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i4 (Yekkehkhany et al., 2017).

Blind GB-PANDAS removes knowledge of both arrival rates and service rates. It maintains estimates jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i5, updates them from service completions, and alternates exploitation with exploration using a monotone-decreasing jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i6 satisfying jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i7. In exploitation, an arriving type-jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i8 task is routed by

jλi,j=λi\sum_j \lambda_{i,j}=\lambda_i9

while scheduling serves the highest-priority nonempty sub-queue; exploration randomly samples servers or sub-queues so that all locality classes are observed infinitely often (Yekkehkhany et al., 2019). The resulting Markov chain i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,0 is irreducible, aperiodic, and positive-recurrent whenever i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,1. Experiments with three servers, three task types, Poisson arrivals, and log-normal heavy-tailed service times found that Blind GB-PANDAS remained stable up to capacity and delivered substantially lower delays in heavy traffic, often i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,2 better than Max-Weight or i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,3-rule with exploration (Yekkehkhany et al., 2019).

Related models clarified structural phenomena that are not visible in single-rate load balancing. In the primary-secondary model, affinity coupling bounds the original non-exchangeable system by reference systems such as RA, MJSQi=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,4, and JSQi=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,5, yielding explicit stability conditions and performance bounds (Cardinaels et al., 2018). In the symmetric combinatorial model, the fluid limit exhibits two regimes: a unique all-busy fixed point for small i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,6, and bistability when i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,7, with one stable no-queueing mode, one unstable fixed point, and metastability on long time scales (Cardinaels et al., 2018). A different extension studies job-server affinity under uncertainty of job types and threshold-based rerouting or replication. There, full replication i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,8 maximizes the achievable stability bound in highly unbalanced speed regimes, zero redundancy i=1Iλi,jμi,j<1,j,\sum_{i=1}^I \frac{\lambda_{i,j}}{\mu_{i,j}}<1,\qquad \forall j,9 is best in nearly balanced regimes, and a suitable threshold can reduce expected latency under CC0 approximations (Raaijmakers et al., 2020).

4. Graph-based service affinity in microservice systems

In microservice architectures, service affinity is often operationalized as a weighted interaction graph and solved as a partitioning problem. SAGA models the system as an undirected weighted graph CC1, where CC2 is the set of microservice instances, CC3, and CC4 is the normalized affinity weight (Dinh-Tuan et al., 6 Sep 2025). Placement is then formulated as a minimum-weight CC5-cut: partition CC6 into CC7 disjoint subsets CC8 so as to minimize the total weight of edges crossing partitions. An integer-programming form minimizes CC9 subject to assignment, cut-consistency, and optional balance constraints (Dinh-Tuan et al., 6 Sep 2025).

SAGA uses a modified I={1,,I}I=\{1,\dots,I\}00-way Kernighan-Lin heuristic. Each two-way pass runs in I={1,,I}I=\{1,\dots,I\}01 on a subset of size I={1,,I}I=\{1,\dots,I\}02; recursively splitting until I={1,,I}I=\{1,\dots,I\}03 subsets are obtained yields total worst-case time I={1,,I}I=\{1,\dots,I\}04 (Dinh-Tuan et al., 6 Sep 2025). The framework is organized as three services within Kubernetes: Cluster Monitoring Service, Affinity-based Clustering Service, and Migration Orchestration Service. In a prototype built on Microsoft eShopOnWeb with RabbitMQ and deployed on Google Kubernetes Engine with 1 control-plane and 3 worker nodes, SAGA reduced mean latency from I={1,,I}I=\{1,\dots,I\}05 ms to I={1,,I}I=\{1,\dots,I\}06 ms over 200 requests, a I={1,,I}I=\{1,\dots,I\}07 reduction, while also tightening the latency distribution (Dinh-Tuan et al., 6 Sep 2025).

DREAMS extends the graph view to a decentralized compute-continuum setting. For each candidate migration of microservice I={1,,I}I=\{1,\dots,I\}08 into cluster I={1,,I}I=\{1,\dots,I\}09, it computes a Cluster Affinity Score

I={1,,I}I=\{1,\dots,I\}10

defines intra-domain and best inter-domain affinities,

I={1,,I}I=\{1,\dots,I\}11

and uses the Affinity Gain

I={1,,I}I=\{1,\dots,I\}12

as the basic migration signal (Dinh-Tuan et al., 9 Sep 2025). The global problem is to partition the interaction graph I={1,,I}I=\{1,\dots,I\}13 with edge weights I={1,,I}I=\{1,\dots,I\}14 so as to minimize the total affinity cut across domain boundaries, subject to capacity constraints such as CPU and memory limits (Dinh-Tuan et al., 9 Sep 2025).

The distinctive feature of DREAMS is decentralized coordination. Each Local Domain Manager proposes at most one migration per leader term using a net score I={1,,I}I=\{1,\dots,I\}15, where I={1,,I}I=\{1,\dots,I\}16, and proposes only if I={1,,I}I=\{1,\dots,I\}17. Followers perform cost-benefit voting using a normalized local-impact score, a latency-change term I={1,,I}I=\{1,\dots,I\}18, an affinity-penalty weight I={1,,I}I=\{1,\dots,I\}19, and a scaled penalty I={1,,I}I=\{1,\dots,I\}20, voting YES when I={1,,I}I=\{1,\dots,I\}21 (Dinh-Tuan et al., 9 Sep 2025). This exchange is embedded into a Raft cycle that tolerates I={1,,I}I=\{1,\dots,I\}22 crashes and commits after a quorum of I={1,,I}I=\{1,\dots,I\}23 acknowledgements. In deployments of 3–20 LDMs across Google-Cloud regions, mean registration time grew sub-linearly from approximately I={1,,I}I=\{1,\dots,I\}24 ms to approximately I={1,,I}I=\{1,\dots,I\}25 ms, worst-case convergence from I={1,,I}I=\{1,\dots,I\}26 ms to I={1,,I}I=\{1,\dots,I\}27 ms, and migration voting latency from I={1,,I}I=\{1,\dots,I\}28 ms to I={1,,I}I=\{1,\dots,I\}29 ms. On a 10-service graph with initial inter-domain cut weight I={1,,I}I=\{1,\dots,I\}30, DREAMS converged to the offline-computed optimum of I={1,,I}I=\{1,\dots,I\}31 (Dinh-Tuan et al., 9 Sep 2025).

5. Serverless functions and shared-cluster provisioning

In serverless systems, affinity can be imposed declaratively as a scheduling constraint rather than inferred from traffic. The aAPP extension to APP lets each tag specify blocks containing worker sets, strategies, invalidate constraints, and an affinity list mixing positive and negated tags. Scheduling evaluates blocks in order, filters candidate workers by capacity, concurrency, and the affinity predicate, then chooses a worker by best_first or any; if no block succeeds, it either fails or follows the default tag, depending on followup (Palma et al., 2024). The complexity per request is linear in policy size and candidate workers, stated as I={1,,I}I=\{1,\dots,I\}32 (Palma et al., 2024).

A prototype integrated into Apache OpenWhisk modified the Controller’s load-balancer, added a parser for .aapp scripts, and maintained state tables for active functions and tag activations (Palma et al., 2024). In an affinity-aware “divide-et-impera” scenario with two interdependent functions and co-tenant heavy functions across two geo-zones, full aAPP affinity plus anti-affinity achieved mean latency I={1,,I}I=\{1,\dots,I\}33 ms, median I={1,,I}I=\{1,\dots,I\}34 ms, and 95% tail I={1,,I}I=\{1,\dots,I\}35 ms after 250 runs. The anti-affinity-only baseline had mean I={1,,I}I=\{1,\dots,I\}36 ms, median I={1,,I}I=\{1,\dots,I\}37 ms, and tail I={1,,I}I=\{1,\dots,I\}38 ms, while plain APP had mean I={1,,I}I=\{1,\dots,I\}39 ms, median I={1,,I}I=\{1,\dots,I\}40 ms, and tail I={1,,I}I=\{1,\dots,I\}41 ms; retries to read from the database were I={1,,I}I=\{1,\dots,I\}42 under aAPP versus I={1,,I}I=\{1,\dots,I\}43–I={1,,I}I=\{1,\dots,I\}44 in the baselines (Palma et al., 2024). In non-affinity microbenchmarks, differences between APP and aAPP were under I={1,,I}I=\{1,\dots,I\}45 ms on average, and both were under I={1,,I}I=\{1,\dots,I\}46 ms relative to vanilla OpenWhisk (Palma et al., 2024).

Static analysis becomes much harder once positive affinity is admitted. The formal study of aAPP reachability shows that without affinity, reachability and co-occurrence are decidable in linear time, while full affinity and anti-affinity make reachability PSPACE-complete. A polarized fragment with only anti-affinity remains linear, whereas positive-affinity-only reachability is NP-hard and still in PSPACE (Palma et al., 2024). This result identifies a precise trade-off between policy expressivity and analyzability.

ICPS addresses serverless workflow execution from a dynamic-scaling perspective. It predicts workflow and function concurrency with an LSTM, maps workflow-level predictions to function-level predictions by

I={1,,I}I=\{1,\dots,I\}47

sets pre-warm targets I={1,,I}I=\{1,\dots,I\}48, and deploys new instances using an Affinity Deployment Strategy based on invocation-frequency scores

I={1,,I}I=\{1,\dots,I\}49

Placement minimizes the penalty from cross-node invocations I={1,,I}I=\{1,\dots,I\}50 subject to worker memory limits (Chen et al., 9 Apr 2025). Against six baselines, ICPS reported up to I={1,,I}I=\{1,\dots,I\}51 reduction in average workflow response time under high concurrency I={1,,I}I=\{1,\dots,I\}52 requests), I={1,,I}I=\{1,\dots,I\}53 fewer cold starts, and an overall I={1,,I}I=\{1,\dots,I\}54 improvement in I={1,,I}I=\{1,\dots,I\}55; when inter-node latency I={1,,I}I=\{1,\dots,I\}56 was I={1,,I}I=\{1,\dots,I\}57–I={1,,I}I=\{1,\dots,I\}58 ms, affinity-based co-location yielded a I={1,,I}I=\{1,\dots,I\}59 reduction in end-to-end critical-path latency (Chen et al., 9 Apr 2025).

Affinity also appears as a provisioning constraint in shared clusters running long-running applications. The ILP model for affinity-aware resource provisioning uses binary placement variables I={1,,I}I=\{1,\dots,I\}60, node-use variables I={1,,I}I=\{1,\dots,I\}61, and application-presence variables I={1,,I}I=\{1,\dots,I\}62, with node-count objective I={1,,I}I=\{1,\dots,I\}63, capacity constraints, and general co-location upper bounds

I={1,,I}I=\{1,\dots,I\}64

Special cases encode must-together co-location and anti-affinity exactly (Mommessin et al., 2022). The paper studies Application-Centric, Node-Centric, and Multi-Node heuristics, reporting, for example, I={1,,I}I=\{1,\dots,I\}65 deviation with Multi-Node Spread+WFD (BS) on static 2-dimensional instances with I={1,,I}I=\{1,\dots,I\}66, and I={1,,I}I=\{1,\dots,I\}67 deviation on static large-scale instances with I={1,,I}I=\{1,\dots,I\}68 (Mommessin et al., 2022). The best heuristics reduced node usage by up to approximately I={1,,I}I=\{1,\dots,I\}69 relative to naïve AC approaches or existing schedulers, corresponding to approximately I={1,,I}I=\{1,\dots,I\}70 servers in a 5,000-node scenario, approximately I={1,,I}I=\{1,\dots,I\}71 GWh/year, and approximately I={1,,I}I=\{1,\dots,I\}72 kton I={1,,I}I=\{1,\dots,I\}73 avoided under the stated power assumptions (Mommessin et al., 2022).

6. Hard constraints, semantic affinity, and open issues

Recent work extends service affinity beyond communication locality to explicit hardware and semantic constraints. In AgentVNE, service affinity refers to hard, often hardware- or location-based dependencies such as a Trusted Execution Environment or a camera interface. Each virtual node I={1,,I}I=\{1,\dots,I\}74 carries required hardware attributes

I={1,,I}I=\{1,\dots,I\}75

and feasibility is enforced by

I={1,,I}I=\{1,\dots,I\}76

To bias placement toward affinity-constrained nodes, AgentVNE augments a substrate node’s resource tuple I={1,,I}I=\{1,\dots,I\}77 with a virtual resource-bias vector I={1,,I}I=\{1,\dots,I\}78, then applies a dual-stream GCN-plus-Transformer encoder, a column-wise neural tensor network, supervised pre-training, and PPO fine-tuning (Zheng et al., 5 Jan 2026). In the reported simulations, AgentVNE reduced workflow communication latency to less than I={1,,I}I=\{1,\dots,I\}79 of baselines and improved service acceptance rate by approximately I={1,,I}I=\{1,\dots,I\}80 under high-load scenarios (Zheng et al., 5 Jan 2026).

The progression from queueing models to graph partitioning, declarative policies, and semantic inference has not removed the core tensions of service affinity. One recurring issue is information and coordination overhead. GB-PANDAS requires per-server per-level queue lengths and central knowledge of I={1,,I}I=\{1,\dots,I\}81, which may incur messaging cost; proposed extensions include power-of-I={1,,I}I=\{1,\dots,I\}82 sampling of workloads, join-idle-queue hybrids, and decentralized approximations (Yekkehkhany et al., 2017). DREAMS addresses coordination by decentralizing placement decisions with Raft-based consensus, but still measures voting and registration latencies explicitly (Dinh-Tuan et al., 9 Sep 2025). Another issue is unresolved optimality: for GB-PANDAS, a full heavy-traffic proof remains open, although simulations and an informal state-space-collapse argument suggest concentration on a single dimension in the Halfin-Whitt regime and superiority over JSQ-MaxWeight except in degenerate two-level cases (Yekkehkhany et al., 2017).

A further tension is that affinity can improve locality while worsening interference or verification complexity. ICPS notes that co-locating high-affinity functions can increase CPU and memory contention, and suggests extending affinity with an interference model I={1,,I}I=\{1,\dots,I\}83 (Chen et al., 9 Apr 2025). The formal analysis of aAPP shows that adding general affinity elevates reachability checking from linear time to PSPACE-complete, even though anti-affinity alone remains tractable (Palma et al., 2024). These results suggest that service affinity is not a single technique but a design axis: one chooses how much of the system’s heterogeneity, interaction structure, or governance policy to encode explicitly in placement, and then accepts the corresponding cost in state, computation, or analysis.

Within that design axis, the field has converged on a broad principle. Whether the affinity signal is a service-rate matrix, a locality level, a graph edge weight, a co-location predicate, or a hardware-label set, performance improves when the scheduler or orchestrator uses the signal directly rather than treating resources as exchangeable. The exact gain depends on the model class: throughput and heavy-traffic behavior in typed-task queues (Yekkehkhany et al., 2017), cut-weight and latency in microservice graphs (Dinh-Tuan et al., 6 Sep 2025, Dinh-Tuan et al., 9 Sep 2025), cold-start and workflow response in serverless systems (Chen et al., 9 Apr 2025, Palma et al., 2024), node count and carbon impact in shared clusters (Mommessin et al., 2022), and feasible low-hop embedding in edge agentic AI (Zheng et al., 5 Jan 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Service Affinity.