Source-linked AI summary
A Survey of Timing Variability in Microservice-Based Software-Defined Vehicles
Cyrus K. Vattes, Habib Mostafaei, Nirvana Meratnia
TL;DR
Timing variability in microservice-based systems has not been holistically synthesized, while local disturbances can propagate across service, resource, and coordination boundaries. The paper frames execution and timing through models that account for constraints, concurrency, synchronization, and adaptations, and concludes that timing guarantees depend on structural and epistemic assumptions.
Problem
Timing variability and its propagation mechanisms in microservice-based systems have not yet been holistically studied or synthesized.
Method
The paper models execution as the end-to-end realization of service behavior and considers constraints, concurrency, synchronization, and adaptations for individual analysis.
Results
Local timing disturbances can propagate and amplify across service, resource, or coordination boundaries into complex behaviors affecting system-wide predictability and stability.
Takeaways & Limitations
Timing guarantees are admissible only under structural and epistemic assumptions about the system being modeled.
Takeaways & Limitations
Component-level behavior cannot be assumed to extend accurately to the larger system without accounting for nonlinear propagation and system instability.
Abstract
from arXiv · showhide
Microservice-based systems are modular and adaptable, but their distributed structure makes their timing behavior difficult to analyze and guarantee. Because latency emerges from interactions among service dependencies, shared resources, and coordinating middleware, local timing disturbances can propagate into system-level effects. This survey examines the sources, propagation mechanisms, and observable impacts of timing variability in microservice-based systems, using software-defined vehicles as a motivating example. It compares major classes of timing models by their assumptions about workload stability, execution structure, resource sharing, observability, and guarantee admissibility, and summarizes their limitations within microservice-based software-defined vehicles.
1 Introduction
Microservice architectures improve modularity and adaptability but make timing difficult to infer because runtime behavior emerges across distributed execution, communication, resources, and coordination. The survey synthesizes how timing variability propagates and compares timing-model assumptions and limitations for dynamic, heterogeneous, partially observable systems.
- Microservices distribute work across services, virtualization environments, networks, and coordination middleware, so timing depends on interactions across execution paths.
- Traditional timing and schedulability models often assume stable execution environments and predictable traffic, whereas microservice deployments are dynamic and partially observable.
- Resource contention, asynchronous communication, adaptive scaling, and distributed coordination alter runtime timing, complicating end-to-end inference from local behavior.
- Software-defined vehicles expose the tension between modular, adaptable distributed environments and the strong timing guarantees required by safety-critical functions.
- The survey frames timing as an emergent property of distributed execution, propagation, contention, and control rather than a local property accumulated across isolated services.
- It examines how timing variability emerges, propagates, and amplifies, then compares existing models by their assumptions and limitations in dynamic microservice systems.
2 Background
The background defines distributed microservice execution and timing in terms of end-to-end computation, communication, waiting, and coordination. It also explains how telemetry reconstructs only partial execution paths, creating observability limits for understanding runtime behavior.
- Distributed systems exhibit behavior from multiple networked components without a single component having a complete system-wide view.
- Microservices are independently deployable, loosely coupled units that communicate through shared interfaces and can be deployed, updated, replicated, or replaced independently.
- End-to-end execution includes computation, communication, transit, queuing, resource-contention delays, and coordination across one or more microservices.
- Timing concerns when work occurs, how long it takes, and whether deadlines or operational constraints are met; correctness in real-time systems depends on when results are produced.
- Execution paths may include sequential, branching, parallel, fan-out, fan-in, asynchronous, or queued stages rather than a simple sequence.
- Distributed tracing assembles correlated spans into dependency graphs, but incomplete, dropped, unobserved, or asynchronous interactions make reconstructed paths approximate and instrumentation-dependent.
2.2 Timing Metrics
The survey distinguishes timing metrics by where elapsed time occurs and how variability affects end-to-end service commitments. These metrics capture local execution, distributed delays, timing irregularity, throughput, and contract violations.
- Latency: Latency is the elapsed interval from request arrival or generation until the corresponding result becomes available.
- Latency: Local execution latency measures one service instance, whereas end-to-end latency accumulates time across the complete execution path.The path may span services, networks, middleware, and coordination points.
- Latency: Inferring end-to-end latency from local execution latency is nontrivial because service-boundary overhead is difficult to predict.Distributed latency is uneven, and rare high-latency events can disproportionately affect observed behavior.
- Timing Variability: Jitter matters when timing consistency supports feedback and control loops, because irregular timing can disrupt coordination despite bounded average delay.A long latency tail is one manifestation of such irregularity.
- Timing Variability: Timing variability covers deviations across the full execution path, extending beyond networking-specific jitter.Its causes include resource contention, traffic-dependent queuing, network conditions, and execution environments.
- Operational Constraints and Violations: SLA, SLO, and QoS define service commitments, measurable performance goals, and measurable end-to-end performance, respectively.Microservice commitments often require disaggregated timing requirements across multiple execution stages.
2.3 Propagation Structures
Execution graphs represent the runtime structure through which timing effects propagate, while deployment environments and middleware add further interaction and feedback paths. Partial observability can make reconstructed execution structures diverge from declared designs.
- Execution Graphs: Execution and dependency graphs model service operations and stages as nodes connected by call, order, or dependency relations.Their runtime structure affects how timing effects propagate.
- Execution Graphs: Declared graphs encode design-time orchestration, whereas reconstructed graphs approximate dependencies from runtime telemetry.The two graph types can diverge significantly under partial observability.
- Execution Graphs: Parallel, asynchronous, or synchronized paths determine how delay accumulates, especially where execution graphs converge at shared services.Converging shared services increase load and create propagation paths between otherwise distinct pathways.
- Execution Graphs: Local delays can spread through implicit propagation paths created by resource contention or co-location, even without direct invocation edges.Shared infrastructure therefore couples services beyond their logical dependency graph.
- Execution Environments: Virtualization affects startup time, scheduling and communication overhead, and resource availability, while co-location determines resource sharing and network boundaries.Hypervisors isolate at the hardware abstraction layer; containers isolate at the operating-system level while sharing a kernel.
- Coordination and Control Middleware: Observability and orchestration form feedback loops whose delayed or incomplete state can slow and distort control decisions.Monitoring stacks also compete with application workloads and can alter response times and tail behavior.
3 Sources of Timing Variability
The survey groups timing-variability sources by their primary execution or interaction context: local execution, inter-service communication, and coordination or control middleware. These categories overlap but provide a structured view of how variability enters and propagates across distributed layers.
- Global timing variability emerges largely from interactions between components and abstraction layers.
- The survey categorizes sources as local execution effects, communication between services, and coordination or control middleware.
- The categories are not wholly independent, but they structure analysis of how timing variability enters and propagates across distributed-system layers.
3.1 Local Variability
Local timing variability arises from virtualization, scheduling, queuing, resource contention, and synchronization behavior. These effects alter execution time and can amplify into downstream response-time variation or service failures.
- Scheduling and Virtualization: Virtualization increases application startup times and reduces scheduling and execution efficiency relative to native deployments.Node-level timing therefore depends on the local execution environment as well as service logic.
- Scheduling and Virtualization: Co-located services compete for processor time and memory, making local scheduling a direct source of timing variability.Interference remains persistent and unpredictable, particularly in high-density deployments.
- Queuing: When requests arrive faster than processing capacity, queues grow and waiting times become larger and more variable.Transient traffic can consequently increase downstream response times.
- Resource Contention: Resource contention increases execution time, interacts with scheduling policies, and feeds directly into queue growth and response time.This makes node timing depend on how co-located workloads share limited resources.
- Resource Contention: Orchestration and resource-allocation mechanisms can reduce harmful interactions but do not fully eliminate their timing impact.
- Synchronization: Concurrent and asynchronous execution makes observed event ordering depend on runtime interleavings and timing fluctuations.Synchronization errors can misalign timing observations or cause service failures that propagate downstream.
- Synchronization: Synchronization mechanisms can conflict with timing formalisms and become difficult to bound, while complex asynchronous paths increase possible interleavings.
3.2 Network Variability
Network communication is a major source of timing variability because transmission, routing, protocol translation, interference, congestion, and recovery mechanisms add and amplify delay across heterogeneous SDV infrastructures. Deterministic networking can reduce contention under expected traffic, but timing remains sensitive to deviations, interference, and cross-layer interactions.
- Sources of variability: Communication delay arises from transmission, processing, routing, forwarding, interference, queuing, and contention across shared network infrastructure.These effects are amplified when multiple traffic flows compete for capacity.
- Failure and recovery: Network failures add recovery overhead through retries, liveness traffic, and tolerance policies, increasing end-to-end latency beyond normal expectations.Under a 100-millisecond workflow deadline, instability reduces the budget available for downstream computation.
- Mitigation limits: Traffic shaping and TSN can reduce contention under known traffic patterns, but deviations from expected arrival curves can produce rebound queuing effects.Synchronization alone does not eliminate traffic saturation in bandwidth-limited infrastructures.
- Heterogeneity and abstraction: Heterogeneous networks and protocol translation give logically identical interactions different timing behavior depending on routing paths and abstraction boundaries.Response times can differ when requests use Ethernet or a CAN bus, while protocol translation adds processing overhead at boundaries.
- Coordination effects: Cross-layer coordination and middleware QoS settings complicate timing analysis and may prevent local timing guarantees from composing end to end.Reliability policies may require acknowledgments before subsequent transmissions, directly affecting latency and throughput.
3.3 Middleware Variability
Middleware and coordination mechanisms introduce timing variability through delayed feedback, reconfiguration overhead, scaling transitions, failures, mixed-criticality interference, and observability costs. These mechanisms can mitigate overload or failures, but their responses may themselves perturb execution timing.
- Scaling: Autoscaling reacts through delayed telemetry and controller feedback, so overload can increase before new resources become available.Coarse sampling, under-provisioning, and incomplete redistribution can degrade autoscaler reliability.
- Scaling: Launching replicas, deploying virtual machines, and performing resource-management operations impose response windows that may exceed millisecond-level SLOs.Container startup may take seconds, and shorter latency spikes cannot be corrected within the mitigation deadline.
- Scaling: Scaling changes system state through migrations, reconfiguration, and altered capacity, introducing transition variability, added latency, and possible oscillations.Stateful migrations can take several milliseconds, while vertical scaling can add latency during adjustment.
- Failures: Failure handling can propagate timing effects through misrouted requests, timeouts, retries, lost capacity, and unpredictable response times.A small number of slow components can affect many end-to-end requests and dominate tail latency in larger systems.
- Mixed-criticality interference: Mixed-criticality workloads create interference across compute, network, dependency, and asynchronous-execution layers, requiring isolation or worst-case provisioning.Worst-case provisioning increases overhead and reduces overall efficiency.
- Coordination and reconfiguration: Coordination overhead is itself a source of timing variability because adaptive control ties execution timing to runtime resource-aware decisions.The decomposition improves responsiveness and scalability but increases the coordination required to manage the system.
- Observer effects: Observability layers consume shared CPU, memory, and network resources, increasing startup and response-time overhead and potentially amplifying tail latency.Instrumentation can also change the system structure through context propagation.
4 Timing Propagation
Timing variability propagates through dependency graphs, shared resources, and control loops rather than remaining confined to its originating component. Topology, contention, coordination, and parallel execution determine whether local disturbances accumulate, spread, or amplify into system-level effects.
- Dependency propagation: Requests traverse dependent service chains, so local timing variability can affect downstream components and propagate across service boundaries.A service may remain unaffected when it has sufficient timing buffer to absorb the disturbance.
- Dependency propagation: Dependency topology determines how timing effects compose: serial paths accumulate latency, while concurrent paths can stall aggregation when one branch is slow.The location, connectivity, and critical-path distance of a delay influence its system-wide effect.
- Dependency structure: Large and dynamic call graphs make propagation structures difficult to identify because runtime graphs can diverge from simplified design-time representations.Misattributing a single dependency can have a dramatic impact on tail latency.
- Resource contention: Shared resources create implicit timing dependencies between services that do not directly communicate, with CPU utilization having the strongest impact on response times.Propagation depends on saturated resources, shared workloads, and coupling, so delays are not uniform.
- Control propagation: Control loops can create dependencies between otherwise independent components, while delayed or poorly coordinated actions may produce nonlinear timing behavior.Recovery traffic can create resource contention that is then misinterpreted as additional failure, forming a positive feedback loop.
- Amplification: End-to-end request latency depends on many independently variable service latencies and is exacerbated by parallel execution paths and system overhead.Highly connected graphs provide more opportunities for a connected component to delay a request, producing tail amplification.
5 Impacts of Propagation
Propagation produces tail-dominant latency, queue and backpressure spread, instability, and ambiguous anomaly locations in large microservice systems. These effects become harder to predict and diagnose as dependency complexity, concurrency, and feedback interactions increase.
- Tail latency: High-latency events can dominate perceived responsiveness in large systems, where end-to-end latency distributions become increasingly tail-dominant.The effect grows with the number and complexity of interactions, especially when concurrency, network requests, and queuing are present.
- Tail latency: A single overloaded or poorly configured service can degrade end-to-end latency by several orders of magnitude in large dependency graphs.Shared dependencies can produce tail latencies with extremely large variance.
- Queue propagation: Latency increases propagate as backpressure and queues through dependencies, reducing throughput and creating hotspots around overloaded services.Queued requests continue consuming resources while waiting, so congestion can persist after the initial slowdown is fixed.
- Queue propagation: Propagated queues can dramatically increase latency distributions across large system regions and are difficult to mitigate.Persistent congestion may spread to other parts of the system as queues take time to clear.
- Instability: Timing propagation can create positive feedback loops in which recovery or scheduling actions generate additional timing stress, oscillations, or apparent failures.Once queues, retries, contention, or failures reinforce one another, service availability and stability can rapidly decline.
- Diagnosis and observability: Observed anomalies often reflect propagation structures rather than the original disturbance, so affected services may not be responsible for the cause.Distributed tracing may fail to reconstruct causal relationships when services are inadequately instrumented or sampling is coarse.
- Diagnosis and observability: End-to-end latency is a strong global indicator of application performance but should not be used to predict the behavior of constituent services.Local timing variability can produce disproportionately large system-level effects in time-constrained systems.
6 Timing Models
The survey organizes timing models by how they represent workload, service behavior, execution structure, concurrency, resources, uncertainty, and observability. It emphasizes that each family offers useful analyses but faces limitations in dynamic microservice environments.
- Timing-model families differ in their representations of workload, service behavior, execution structure, concurrency, resource availability, uncertainty, and observable information.
- Network calculus: Network calculus composes processing and communication stages to derive end-to-end timing from arrival curves, service curves, and resource constraints.It can connect local component behavior with global timing behavior across distributed service chains.
- Network calculus: Network-calculus guarantees may become conservative or inaccurate when dynamic workloads, asynchronous interactions, failures, shared-resource contention, and virtualization weaken its assumptions.
- Real-time calculus: Real-time calculus similarly derives distributed end-to-end behavior by composing bounded stage behavior, but its guarantees are strongest under predictable requests and stable service availability.
- Probabilistic models: Probabilistic models represent request intervals, service times, and failures as stochastic processes, making waiting time, throughput, latency, and jitter tractable under observed variability.They focus on high-percentile behavior rather than absolute worst-case bounds, but provide weaker likelihood-based guarantees.
- State-based models: State-based models explicitly represent timing constraints, concurrency, synchronization, and adaptation, but concurrency and branching can create state spaces too large for live analysis.Petri nets are useful for concurrent and asynchronous events, while large state spaces often require abstraction or decomposition.
7 Limitations of Current Timing Models
Current timing models provide meaningful component-level reasoning but rely on structural, operational, and observability assumptions that often fail in dynamic, uncertain, partially observable microservice systems. Consequently, their local guarantees may not compose into reliable system-scale guarantees.
- Timing guarantees are admissible only when assumptions about synchronization, topology, resource contention, availability of knowledge, and system structure are known, stable, and composable.
- Centralized controllers cannot fully capture dynamic behavior when system state is difficult to observe and distributed components cannot be completely controlled.
- Microservice systems evolve during operation, making static design-time scheduling impractical and limiting models that assume stable or centralized execution conditions.
- Increasing scale and complexity make coherent global state harder to maintain, so eliminating latency variability becomes less realistic than designing tolerant systems.
- Component-level analyses cannot generally compose into system-scale models without broad assumptions about operating conditions, execution paths, and observability.
- Because microservice systems are typically dynamic, partially observable, and nondeterministic, current models do not fully capture their nonlinear timing behavior.
8 Conclusion
The survey frames timing in microservice-based software-defined vehicles as an emergent system property shaped by dependencies, shared resources, and feedback loops. It concludes that local disturbances can propagate beyond components, while existing models may not provide sufficient system-level guarantees without explicit assumptions.
- Timing behavior emerges from interactions among service dependencies, shared resources, and feedback loops rather than from additive local execution alone.
- Local timing disturbances can cross service, resource, and coordination boundaries, propagating and amplifying into complex system-level effects.
- Existing timing models can analyze constituent components, but their analyses may not generalize or compose in dynamic, uncertain, or partially observable systems.
- Timing guarantees for microservice-based SDVs should be derived using explicit assumptions about execution structure, shared resources, propagation paths, workload, runtime dynamism, and observability.
- Making assumptions explicit may improve the reliability of timing analyses and guarantees in time-constrained, highly dynamic distributed environments.