Impact of API Rate Limit on Reliability of Microservices-Based Architectures

被引:5
作者
El Malki, Amine [1 ]
Zdun, Uwe [1 ]
Pautasso, Cesare [2 ]
机构
[1] Univ Vienna, Fac Comp Sci, Res Grp Software Architecture, A-1090 Vienna, Austria
[2] Univ Lugano, Fac Informat, Software Inst, Lugano, Switzerland
来源
2022 16TH IEEE INTERNATIONAL CONFERENCE ON SERVICE-ORIENTED SYSTEM ENGINEERING (SOSE 2022) | 2022年
关键词
API Rate Limit; Microservices; Cloud; Reliability; Modeling;
D O I
10.1109/SOSE55356.2022.00009
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Many API patterns and best practices have been developed around microservices-based architectures, such as Rate Limiting and Circuit Breaking, to increase quality properties such as reliability, availability, scalability, and performance. Even though estimates on such properties would be beneficial, especially during the early design of such architectures, the real impact of the patterns on these properties has not been rigorously studied yet. This paper focuses on API Rate Limit and its impact on reliability properties from the perspective of API clients. We present an analytical model that considers specific workload configurations and predefined rate limits and then accurately predicts the success and failure rates of the back-end services. The model also presents a method for adaptively fine-tuning rate limits. We performed two extensive data experiments to validate the model and measured Rate Limiting impacts, firstly on a private cloud to minimize latency and other biases, and secondly on the Google Cloud Platform to test our model in a realistic cloud environment. In both experiments, we observed a low percentage of prediction errors. Thus, we conclude that our model can provide distributed system engineers and architects with insights into an acceptable value for the rate limits to choose for a given workload. Very few works empirically studied the impact of Rate Limit or similar API-related patterns on reliability.
引用
收藏
页码:19 / 28
页数:10
相关论文
共 33 条
[1]   cloud-ATAM: Method for Analysing Resilient Attributes of Cloud-Based Architectures [J].
Adjepon-Yamoah, David Ebo .
SOFTWARE ENGINEERING FOR RESILIENT SYSTEMS, (SERENE 2016), 2016, 9823 :105-114
[2]  
[Anonymous], 2020, MICROSERVICE API PAT
[3]  
Bagdi H, 2020, GETTING STARTED KON
[4]  
Bagdi H., 2020, INTEGRATE KONG INGRE
[5]   Chaos Engineering [J].
Basiri, Ali ;
Behnam, Niosha ;
de Rooij, Ruud ;
Hochstein, Lorin ;
Kosewski, Luke ;
Reynolds, Justin ;
Rosenthal, Casey .
IEEE SOFTWARE, 2016, 33 (03) :35-41
[6]  
Brosch F, 2010, LECT NOTES COMPUT SC, V6093, P36, DOI 10.1007/978-3-642-13821-8_5
[7]   CloudSim: a toolkit for modeling and simulation of cloud computing environments and evaluation of resource provisioning algorithms [J].
Calheiros, Rodrigo N. ;
Ranjan, Rajiv ;
Beloglazov, Anton ;
De Rose, Cesar A. F. ;
Buyya, Rajkumar .
SOFTWARE-PRACTICE & EXPERIENCE, 2011, 41 (01) :23-50
[8]   Research on Architecting Microservices: Trends, Focus, and Potential for Industrial Adoption [J].
Di Francesco, Paolo ;
Lago, Patricia ;
Malavolta, Ivano .
2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ARCHITECTURE (ICSA 2017), 2017, :21-30
[9]  
Di Marco A, 2006, LECT NOTES COMPUT SC, V4214, P95
[10]  
Duzbayev N, 2006, LECT NOTES COMPUT SC, V4214, P78