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
Roy, Probir
中科院分区:
计算机科学3区
文献类型:
--
作者:
Tariq, Syed Salauddin;Menard, Lance;Su, Pengfei;Roy, Probir

文献摘要

相似文献

微服务架构风格由于其故障隔离能力,易于扩展应用程序和开发人员的敏捷性而受到欢迎。然而,以微服务设计风格编写应用程序有其挑战。由于松耦合的特性,服务通过标准通信API与其他服务进行通信。由于通信协议和数据转换,这会在应用程序中产生显著的开销。微服务应用程序逻辑上的低效服务通信可能会进一步淹没应用程序。我们进行了灰色文献综述,表明不必要的数据传输是行业中的一个真实的挑战。据我们所知,目前还没有有效的工具可以准确地识别不必要的微服务通信的来源,这些通信会导致显着的性能开销,并为优化提供指导。为了弥合知识差距,我们提出了MicroProf,一个动态程序分析工具,用于检测基于Java的微服务应用程序中不必要的数据传输。在实现层次上,MicroProf提出了新的技术,如远程对象采样和硬件调试寄存器来监控远程对象的使用情况,MicroProf在应用程序源代码层次上报告了不必要的数据传输。此外,MicroProfis还指出了通信API优化的机会。MicroProfis对四个著名的应用程序进行了评估,包括两个真实世界的应用程序和两个基准测试,确定了五个低效的远程调用。在MicroProf的指导下,API优化将REST API响应中的字段数量减少了87.5%。实证评估进一步表明,优化后的服务体验的加速高达4.59倍。
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×.