微服务应用中通信协议的性能表征

Prajwal Kiran Kumar, Radhika Agarwal, Rahul Shivaprasad, D. Sitaram, Subramaniam Kalambur
{"title":"微服务应用中通信协议的性能表征","authors":"Prajwal Kiran Kumar, Radhika Agarwal, Rahul Shivaprasad, D. Sitaram, Subramaniam Kalambur","doi":"10.1109/SmartNets50376.2021.9555425","DOIUrl":null,"url":null,"abstract":"Industrial applications are moving towards deployment using the microservice architecture. These microservices heavily rely on the networking stack for communication which, along with the container abstraction layer causes a significant overhead. With increasing core count on modern processors, these microservices are likely to be scheduled on the same host. In this paper, we attempt to analyze and optimize inter-microservice communication on the same host. We characterize three popular communication protocols - REST, gRPC, and Thrift, in terms of their network, memory, CPU utilization, and response time. Our studies showed that Thrift and gRPC are relatively faster than REST and hence, suitable for inter-microservice interactions owing to their speeds and compression. We leverage the shared memory between the microservices on the same host, using Unix Domain Sockets along with appropriate NUMA tuning that achieved an 86.48% reduction in response time.","PeriodicalId":443191,"journal":{"name":"2021 International Conference on Smart Applications, Communications and Networking (SmartNets)","volume":"15 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":"{\"title\":\"Performance Characterization of Communication Protocols in Microservice Applications\",\"authors\":\"Prajwal Kiran Kumar, Radhika Agarwal, Rahul Shivaprasad, D. Sitaram, Subramaniam Kalambur\",\"doi\":\"10.1109/SmartNets50376.2021.9555425\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Industrial applications are moving towards deployment using the microservice architecture. These microservices heavily rely on the networking stack for communication which, along with the container abstraction layer causes a significant overhead. With increasing core count on modern processors, these microservices are likely to be scheduled on the same host. In this paper, we attempt to analyze and optimize inter-microservice communication on the same host. We characterize three popular communication protocols - REST, gRPC, and Thrift, in terms of their network, memory, CPU utilization, and response time. Our studies showed that Thrift and gRPC are relatively faster than REST and hence, suitable for inter-microservice interactions owing to their speeds and compression. We leverage the shared memory between the microservices on the same host, using Unix Domain Sockets along with appropriate NUMA tuning that achieved an 86.48% reduction in response time.\",\"PeriodicalId\":443191,\"journal\":{\"name\":\"2021 International Conference on Smart Applications, Communications and Networking (SmartNets)\",\"volume\":\"15 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-09-22\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"6\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 International Conference on Smart Applications, Communications and Networking (SmartNets)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/SmartNets50376.2021.9555425\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 International Conference on Smart Applications, Communications and Networking (SmartNets)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SmartNets50376.2021.9555425","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

摘要

工业应用程序正朝着使用微服务架构进行部署的方向发展。这些微服务严重依赖网络堆栈进行通信,这与容器抽象层一起导致了巨大的开销。随着现代处理器上核心数量的增加,这些微服务很可能被安排在同一台主机上。在本文中,我们试图分析和优化同一主机上的微服务间通信。我们从网络、内存、CPU利用率和响应时间方面描述了三种流行的通信协议——REST、gRPC和Thrift。我们的研究表明,Thrift和gRPC比REST相对更快,因此,由于它们的速度和压缩,适合微服务之间的交互。我们利用同一主机上的微服务之间的共享内存,使用Unix Domain Sockets以及适当的NUMA调优,从而使响应时间减少了86.48%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Performance Characterization of Communication Protocols in Microservice Applications
Industrial applications are moving towards deployment using the microservice architecture. These microservices heavily rely on the networking stack for communication which, along with the container abstraction layer causes a significant overhead. With increasing core count on modern processors, these microservices are likely to be scheduled on the same host. In this paper, we attempt to analyze and optimize inter-microservice communication on the same host. We characterize three popular communication protocols - REST, gRPC, and Thrift, in terms of their network, memory, CPU utilization, and response time. Our studies showed that Thrift and gRPC are relatively faster than REST and hence, suitable for inter-microservice interactions owing to their speeds and compression. We leverage the shared memory between the microservices on the same host, using Unix Domain Sockets along with appropriate NUMA tuning that achieved an 86.48% reduction in response time.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信