Multi-Objective Joint Optimization for Microservice Deployment and Request Routing
Abstract
1. Introduction
2. Related Work
3. Materials and Methods
3.1. Symbol Definition
3.2. A Constrained Nonlinear Multi-Objective Optimization Model
3.2.1. The Flow-Aware Routing Distance
3.2.2. The Workload Balancing
3.2.3. The Request Response Delay
3.2.4. The Constraints
4. APC-Based Solution Mechanism
4.1. An Improved APC Approach
4.2. The Flowchart
4.3. The Pseudo-Code
| Algorithm 1. APC-based microservice deployment and request routing algorithm |
| Input: , , , {}, , , , , , , , and . |
| Constraints: Equations (19)–(29) |
| Set: , , , , and . |
| Output: The optimal solution |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5. Benchmark Test
5.1. Benchmark Dataset
5.2. Experimental Results
5.3. Comparative Experiments
5.4. Discussions
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Hu, Y.; Wang, H.; Wang, L.; Hu, M.; Peng, K.; Veeravalli, B. Joint deployment and request routing for microservice call graphs in data centers. IEEE Trans. Parallel Distrib. Syst. 2023, 34, 2994–3011. [Google Scholar] [CrossRef]
- Chen, Y.; Wu, C.; Zhang, F.; Lu, C.; Huang, Y.; Lu, H. Topology-aware microservice architecture in edge networks: Deployment optimization and implementation. IEEE Trans. Mob. Comput. 2025, 24, 6090–6105. [Google Scholar] [CrossRef]
- Peng, K.; He, J.; Guo, J.; Liu, Y.; He, J.; Liu, W.; Hu, M. Delay-aware optimization of fine-grained microservice deployment and routing in edge via reinforcement learning. IEEE Trans. Netw. Sci. Eng. 2024, 11, 6024–6037. [Google Scholar] [CrossRef]
- Xu, B.; Guo, J.; Ma, F.; Hu, M.; Liu, W.; Peng, K. On the joint design of microservice deployment and routing in cloud data centers. J. Grid Comput. 2024, 22, 42. [Google Scholar] [CrossRef]
- Hu, M.; Wang, H.; Xu, X.; He, J.; Hu, Y.; Deng, T.; Peng, K. Joint optimization of microservice deployment and routing in edge via multi-objective deep reinforcement learning. IEEE Trans. Netw. Serv. Manag. 2024, 21, 6364–6381. [Google Scholar] [CrossRef]
- Cai, Z.; Lei, S.; Li, J.; Yu, C.; Liu, J.; Gong, G. A heuristic optical flow scheduling algorithm for low-delay vehicular visible light communication. Photonics 2025, 12, 693. [Google Scholar] [CrossRef]
- Feng, K.; Luo, L.; Xia, Y.; Luo, B.; He, X.; Li, K.; Zha, Z.; Xu, B.; Peng, K. Optimizing microservice deployment in edge computing with large language models: Integrating retrieval augmented generation and chain of thought techniques. Symmetry 2024, 16, 1470. [Google Scholar] [CrossRef]
- Hassan, M.U.; Al-Awady, A.A.; Ali, A.; Iqbal, M.M.; Akram, M.; Jamil, H. Smart resource allocation in mobile cloud next-generation network (NGN) orchestration with context-aware data and machine learning for the cost optimization of microservice applications. Sensors 2024, 24, 865. [Google Scholar] [CrossRef]
- Aksakalli, I.K.; Çelik, T.; Can, A.B.; TekïnErdoğan, B. Deployment and communication patterns in microservice architectures: A systematic literature review. J. Syst. Softw. 2021, 180, 111014. [Google Scholar] [CrossRef]
- Petrakis, E.G.M.; Skevakis, V.; Eliades, P.; Aznavouridis, A.; Tsakos, K. Modsoft-HP: Fuzzy microservices placement in Kubernetes. Electronics 2024, 13, 65. [Google Scholar] [CrossRef]
- Li, W.; Li, X.; Chen, L.; Wang, M. Microservice workflow scheduling with a resource configuration model under deadline and reliability constraints. Sensors 2025, 25, 1253. [Google Scholar] [CrossRef] [PubMed]
- Ma, W.; Wang, R.; Gu, Y.; Meng, Q.; Huang, H.; Deng, S.; Wu, Y. Multi-objective microservice deployment optimization via a knowledge-driven evolutionary algorithm. Complex Intell. Syst. 2021, 7, 1153–1171. [Google Scholar] [CrossRef]
- Chen, X.; Xiao, S. Multi-objective and parallel particle swarm optimization algorithm for container-based microservice scheduling. Sensors 2021, 21, 6212. [Google Scholar] [CrossRef] [PubMed]
- Lin, M.; Xi, J.; Bai, W.; Wu, J. Ant colony algorithm for multi-objective optimization of container-based microservice scheduling in cloud. IEEE Access 2019, 7, 83088–83100. [Google Scholar] [CrossRef]
- Wang, S.; Zhang, Y.; He, X.; Wang, N.; Lu, Z.; Chen, B.; Pang, S. Microservice deployment in cloud-edge environment using enhanced global search grey wolf optimizer-greedy algorithm. Clust. Comput. J. Netw. Softw. Tools Appl. 2025, 28, 118. [Google Scholar] [CrossRef]
- Kumar, M.; Samriya, J.K.; Dubey, K.; Gill, S.S. QoS-aware resource scheduling using whale optimization algorithm for microservice applications. Softw. Pract. Exp. 2024, 54, 546–565. [Google Scholar] [CrossRef]
- Cai, Z.Y.; Jiang, S.; Dong, J.H.Z.; Tang, S.J. An artificial plant community algorithm for the accurate range-free positioning of wireless sensor networks. Sensors 2023, 23, 2804. [Google Scholar] [CrossRef]
- Wang, Z.; Zhu, J.; Guo, J.; Liu, Y. Microservice deployment based on multiple controllers for user response time reduction in edge-native computing. Sensors 2025, 25, 3248. [Google Scholar] [CrossRef]
- Aksakalli, I.K.; Celik, T.; Can, A.B.; Tekinerdogan, B. A model-driven architecture for automated deployment of microservices. Appl. Sci. 2021, 11, 9617. [Google Scholar] [CrossRef]
- Zhang, X.; Liang, J.; Lu, Y.X.; Zhang, P.Y.; Bi, Y.X. Differentiated security requirements: An exploration of microservice placement algorithms in internet of vehicles. Electronics 2024, 13, 1597. [Google Scholar] [CrossRef]
- Chen, S.; Yuan, Q.; Li, J.; He, H.; Li, S.; Jiang, X.; Yang, J. Graph neural network aided deep reinforcement learning for microservice deployment in cooperative edge computing. IEEE Trans. Serv. Comput. 2024, 17, 3742–3757. [Google Scholar] [CrossRef]
- Duan, H.; Ji, Z.; Wu, S.; Chen, Z.; Jiang, C.; Zhang, W. Distributed microservice deployment for satellite edge computing networks: A multi-agent deep reinforcement learning approach. IEEE Trans. Veh. Technol. 2025, 74, 14692–14706. [Google Scholar] [CrossRef]
- Shi, Y.; Yang, Y.Y.; Yi, C.Y.; Chen, B.; Cai, J. Toward online reliability-enhanced microservice deployment with layer sharing in edge computing. IEEE Internet Things J. 2024, 11, 23370–23383. [Google Scholar] [CrossRef]
- Seo, J.; Jang, S.; Cha, J.; Choi, H.; Kim, D.; Kim, S. MDED-Framework: A distributed microservice deep-learning framework for object detection in edge computing. Sensors 2023, 23, 4712. [Google Scholar] [CrossRef]
- Choi, H.J.; Komuro, N.; Kim, W.S. Microservices-based resource provisioning for multi-user cloud VR in edge networks. Electronics 2024, 13, 3077. [Google Scholar] [CrossRef]
- He, X.; Tu, Z.Y.; Wagner, M.; Xu, X.F.; Wang, Z.J. Online deployment algorithms for microservice systems with complex dependencies. IEEE Trans. Cloud Comput. 2023, 11, 1746–1763. [Google Scholar] [CrossRef]
- Alzahrani, A.; Tang, M. Energy-aware microservice-based saas deployment in a cloud data center using hybrid particle swarm optimization. IEEE Access 2024, 12, 140884–140899. [Google Scholar] [CrossRef]
- Jin, Y.; Yao, Z.; Wang, Z.; Ding, G.; He, X.; He, J.; Zhang, C.; Li, J. Dynamic scaling mechanism of IoV microservices based on traffic flow prediction and deep reinforcement learning. Symmetry 2025, 17, 1321. [Google Scholar] [CrossRef]
- Zhao, T.Y.; Chen, T.; Sun, Y.D.; Xu, Y. IM-GNN: Microservice orchestration recommendation via interface-matched dependency graphs and graph neural networks. Symmetry 2025, 17, 525. [Google Scholar] [CrossRef]
- Lv, W.; Wang, Q.; Yang, P.; Ding, Y.; Yi, B.; Wang, Z.; Lin, C. Microservice deployment in edge computing based on deep Q learning. IEEE Trans. Parallel Distrib. Syst. 2022, 33, 2968–2978. [Google Scholar] [CrossRef]
- Cai, Z.; Ma, Z.; Zuo, Z.; Xiang, Y.; Wang, M. An image edge detection algorithm based on an artificial plant community. Appl. Sci. 2023, 13, 4159. [Google Scholar] [CrossRef]
- Zhu, J.; Bai, W.; Zhang, H.; Lin, W.; Zhou, T.; Li, K. Adaptive multi-objective swarm intelligence for containerized microservice deployment. Future Gener. Comput. Syst. Int. J. Escience 2026, 174, 108012. [Google Scholar] [CrossRef]









| Notation | Meaning |
|---|---|
| Set of edge servers | |
| An edge server | |
| Number of edge servers | |
| Core network | |
| The computing capacity of edge server | |
| The storage capacity of edge server | |
| Set of microservices | |
| The number of microservices | |
| A microservice | |
| A time slot | |
| Set of discrete time slots | |
| The finite time horizon | |
| Computing resource for processing microservice | |
| The overall computation workload required when microservice is operated on edge server at time slot | |
| Storage capacity required to place microservice | |
| The overall storage capacity required when microservice is operated on edge server at time slot | |
| A microservice deployment indicator. We set (or 0) if microservice is placed on the edge server (or not) at time slot . | |
| The optimal microservice deployment indicator | |
| All microservice deployment decisions | |
| The optimal microservice deployment decision at time slot | |
| Fraction of computing capacity for microservice allocated by edge server at time slot , | |
| All resource allocation strategies | |
| The number of requests for microservice on edge server at time slot | |
| Total number of requests for microservice at time slot | |
| All request routing strategies | |
| Workload ratio where microservice is operated on edge server at time slot | |
| The probability that microservice is outsourced to the remote cloud at time slot | |
| The minimum processing unit of the request routing scheme | |
| The flow-aware routing distance between two edge servers and ’ | |
| The actual request flows or traffic volumes between two edge servers and ’ | |
| The computational delay when microservice is handled on edge server | |
| The transmission rate between edge servers | |
| The transmission delay when microservice is handled on edge server | |
| The transmission rate of core network when microservice is transmitted at time slot | |
| The processing delay of microservice outsourced to a remote cloud at time slot | |
| The average response delay of microservice on all edge servers | |
| The transmission delay between sensing devices and edge servers | |
| The state of edge server at time slot | |
| The action space of edge server at time slot | |
| The reward function at time slot | |
| The expected total sum of future rewards for time steps | |
| The discount factor to diminish the influence of future rewards on present decision-making | |
| The expectation with respect to the time-varying system environments |
| Dataset | Configuration |
|---|---|
| 100 | |
| 100 | |
| Rand [1, 100] | |
| 1 | |
| Rand [0.0%, 100.0%] | |
| Rand [0.0%, 100.0%] | |
| 1000 ms | |
| Rand [0.0%, 100.0%] | |
| Rand [0.0%, 100.0%] | |
| Rand [10.0%, 20.0%] | |
| Rand [5.0%, 10.0%] | |
| Rand [0.0%, 10.0%] |
| Flow-Aware Routing Distance (m) | Workload Balancing (%) | Request Response Delay (ms) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Max | Avg | Min | Max | Avg | Min | Max | Avg | Min | |
| 8964.32 | 8718.55 | 8631.92 | 35.315% | 18.583% | 8.933% | 21.93 | 9.38 | 1.71 | |
| 9182.41 | 9030.58 | 8784.46 | 30.942% | 17.026% | 7.848% | 19.79 | 7.79 | 2.34 | |
| 9124.53 | 8926.38 | 8806.33 | 19.213% | 9.830% | 5.733% | 12.45 | 3.20 | 1.57 | |
| 8900.95 | 8729.51 | 8653.28 | 21.825% | 11.477% | 6.003% | 16.06 | 6.36 | 3.77 | |
| 9131.07 | 8945.09 | 8870.70 | 36.265% | 19.671% | 9.593% | 23.77 | 10.15 | 1.45 | |
| 9025.06 | 8863.74 | 8735.56 | 18.140% | 9.175% | 5.721% | 15.29 | 6.11 | 4.14 | |
| 8955.87 | 8800.28 | 8605.69 | 27.964% | 11.583% | 6.289% | 14.46 | 4.11 | 1.90 | |
| 8985.12 | 8876.18 | 8624.22 | 34.888% | 17.407% | 7.963% | 20.58 | 8.44 | 1.55 | |
| 9115.63 | 8969.28 | 8703.62 | 24.770% | 10.946% | 6.808% | 18.32 | 6.75 | 4.39 | |
| 9141.80 | 8926.60 | 8792.37 | 22.588% | 10.516% | 6.047% | 15.12 | 4.29 | 2.51 | |
| 9165.95 | 8939.39 | 8751.36 | 30.613% | 13.871% | 7.600% | 17.64 | 5.39 | 2.11 | |
| 8936.24 | 8762.39 | 8668.27 | 19.854% | 10.356% | 5.945% | 15.85 | 4.84 | 3.19 | |
| Algorithm | Population Size | Other Parameters |
|---|---|---|
| APC | of the APC individuals | The seeding probability , the growing probability , the fruiting probability . |
| GA [4,12] | of the chromosomes | The chromosome length Lind = 20, the crossover probability = 0.7, and the mutation probability pm = 0.01. |
| DRL [5,21,22,28] | of the neurons in each hidden layer | A state embedding network comprised a shared stack and multiple heads. This shared stack contained two hidden layers, and each head block contained 100 ReLU units followed by |v| + 1 units with zero-centered tanh activation. |
| PSO [13,27] | of the particles | The location limitation loc = 0.5, the speed limitation sp = [−0.5, 0.5], the self-learning factor c1 = 1.5, and the social learning factor c2 = 1.5. |
| ACO [14] | the of ants | The importance of heuristic factors h = 5.0, the pheromone volatilization factor p = 0.1, and the pheromone importance phi = 1.0. |
| GWO [15] | of the gray wolves | Problem dimension dim = 2, and initial positions of the wolf leader (alpha), wolf deputy (beta), and wolf advisor (delta) pos = rand(dim) × 10−5. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Cai, Z.; Yu, F.; Li, W.; Liu, J.; Zhang, M. Multi-Objective Joint Optimization for Microservice Deployment and Request Routing. Symmetry 2026, 18, 195. https://doi.org/10.3390/sym18010195
Cai Z, Yu F, Li W, Liu J, Zhang M. Multi-Objective Joint Optimization for Microservice Deployment and Request Routing. Symmetry. 2026; 18(1):195. https://doi.org/10.3390/sym18010195
Chicago/Turabian StyleCai, Zhengying, Fang Yu, Wenjuan Li, Junyu Liu, and Mingyue Zhang. 2026. "Multi-Objective Joint Optimization for Microservice Deployment and Request Routing" Symmetry 18, no. 1: 195. https://doi.org/10.3390/sym18010195
APA StyleCai, Z., Yu, F., Li, W., Liu, J., & Zhang, M. (2026). Multi-Objective Joint Optimization for Microservice Deployment and Request Routing. Symmetry, 18(1), 195. https://doi.org/10.3390/sym18010195

