Topology-aware Microservice Architecture in Edge Networks: Deployment Optimization and Implementation

Yuang Chen, Chang Wu, Fangyu Zhang, Chengdi Lu, Yongsheng Huang, Hancheng Lu · DOI

Introduction

Deploying microservice architecture (MSA) in edge networks presents unique challenges compared to centralized cloud environments. While cloud networking is typically high-speed and uniform, edge environments consist of geographically dispersed, resource-constrained nodes connected by complex and often unstable topologies. Traditional deployment strategies often treat edge networks as a simple collection of nodes with fixed delays, failing to account for the "bandwidth collisions" that occur when multiple microservices compete for the same physical links.

Illustration of bandwidth collisions in edge networks where multiple service requests compete for shared physical links.

Without considering the underlying network topology and the intricate web of inter-service invocations, deployment schemes frequently suffer from unexpected congestion and high latency. This paper addresses these gaps by proposing a topology-aware framework that maps service dependencies directly onto physical network links to minimize communication delay.

The Three-Tier Network Traffic Model

The core of the proposed approach is a three-tier network traffic model designed to bridge the gap between user requirements and physical hardware. This model organizes the system into three distinct layers:

  1. Service Layer: Represents end-user requests (e.g., VR/AR, drone control, or AI inference) and their specific performance requirements.
  2. Microservice Layer: Defines the logical dependencies and invocation chains between individual microservices.
  3. Edge Node Layer: Maps the logical components to physical hardware and network links, accounting for actual available bandwidth and propagation delays using M/M/1 queuing theory.
The proposed three-tier network traffic model, mapping user requests to logical microservice dependencies and physical edge nodes.

By modeling the system this way, the researchers can accurately simulate how logical service calls translate into physical traffic, allowing for more precise optimization of microservice placement.

Optimization via the TAIA-MD Scheme

To solve the NP-hard problem of optimal microservice placement, the authors introduced the Topology-Aware and Individual-Adaptive Microservice Deployment (TAIA-MD) scheme. This is an enhanced Genetic Algorithm (GA) featuring a novel "individual-adaptive" mechanism.

Instead of initializing the algorithm with a purely random population, TAIA-MD uses a greedy-based heuristic to create "super individuals"—high-quality starting points that represent efficient initial deployments. This approach allows the algorithm to converge approximately 50% faster than traditional GAs while avoiding the local optima that often plague purely greedy searches. The goal is to collocate frequently communicating microservices on the same node or on nodes connected by high-bandwidth, low-hop paths.

Experimental Validation and Results

The framework was evaluated through both extensive simulations and a physical testbed (DMSA) consisting of Raspberry Pi 4Bs, Orange Pi 5Bs, and Gigabit Ethernet switches. The simulation environment featured 50 microservice types across a 50-node topology, while the physical testbed ran real-world services including video streaming and graphic-text processing.

Key results include:

  • Latency Reduction: TAIA-MD achieved a 30% to 60% reduction in communication delay compared to random, greedy, or standard GA-based schemes.
  • Algorithm Efficiency: The scheme reached convergence in roughly 300 iterations, significantly outperforming standard evolutionary approaches.
  • Real-World Performance: On the physical DMSA platform, the scheme reduced average response delay for graphic-text services by up to 38.51% under high-load conditions.
  • Robustness: The system maintained success rates over 97% during simulated link failures and bandwidth fluctuations, demonstrating superior recovery capabilities.

Conclusion and Future Work

This research demonstrates that topology awareness is critical for optimizing microservice performance at the edge. By accounting for physical link constraints and inter-service dependencies, the TAIA-MD scheme significantly slashes latency and improves reliability. Future work will explore joint optimization strategies that simultaneously calculate microservice placement and dynamic network routing to further enhance performance in volatile edge environments.

Summary updated

BibTeX
@article{chen2025topology,
  author = {Yuang Chen and Chang Wu and Fangyu Zhang and Chengdi Lu and Yongsheng Huang and Hancheng Lu},
  title = {{Topology-aware Microservice Architecture in Edge Networks: Deployment Optimization and Implementation}},
  journal = {IEEE Trans. Mobile Computing},
  year = {2025},
  doi = {10.1109/tmc.2025.3539312},
}
Figure