M icro P rof : Code-level Attribution of Unnecessary Data Transfer in Microservice Applications
M icro P rof : Code-level Attribution of Unnecessary Data Transfer in Microservice Applications
复制标题
Micro Prof:微服务应用程序中不必要的数据传输的代码级归因
DOI:
10.1145/3622787
复制
发表时间:
2023
影响因子:
1.6
通讯作者:
Roy, Probir
中科院分区:
文献类型:
--
作者:
Tariq, Syed Salauddin;Menard, Lance;Su, Pengfei;Roy, Probir
The microservice architecture style has gained popularity due to its ability to fault isolation, ease of scaling applications, and developer’s agility. However, writing applications in the microservice design style has its challenges. Due to the loosely coupled nature, services communicate with others through standard communication APIs. This incurs significant overhead in the application due to communication protocol and data transformation. An inefficient service communication at the microservice application logic can further overwhelm the application. We perform a grey literature review showing that unnecessary data transfer is a real challenge in the industry. To the best of our knowledge, no effective tool is currently available to accurately identify the origins of unnecessary microservice communications that lead to significant performance overhead and provide guidance for optimization.To bridge the knowledge gap, we proposeMicroProf, a dynamic program analysis tool to detect unnecessary data transfer in Java-based microservice applications. At the implementation level,MicroProfproposes novel techniques such as remote object sampling and hardware debug registers to monitor remote object usage.MicroProfreports the unnecessary data transfer at the application source code level. Furthermore,MicroProfpinpoints the opportunities for communication API optimization.MicroProfis evaluated on four well-known applications involving two real-world applications and two benchmarks, identifying five inefficient remote invocations. Guided byMicroProf, API optimization achieves an 87.5% reduction in the number of fields within REST API responses. The empirical evaluation further reveals that the optimized services experience a speedup of up to 4.59×.