Inter-Service Communication among Microservices using Kafka Connect

Srijith, Karan Bantia R, Govardhan N, Anala M R
{"title":"Inter-Service Communication among Microservices using Kafka Connect","authors":"Srijith, Karan Bantia R, Govardhan N, Anala M R","doi":"10.1109/ICSESS54813.2022.9930270","DOIUrl":null,"url":null,"abstract":"The new age software should be highly scalable and easily maintainable. The most used architecture to ensure this is the microservice architecture. The software is composed of independent small services in microservice architecture that communicate over well-defined APIs. The communication for the asynchronous flows cannot be done by HTTP APIs which are synchronous (request-reply pattern) as it leads to high consumption of the resources which in turn leads to increase in the traffic of both the microservices. In order to tackle this problem for asynchronous nature, a message queue like Kafka, RabbitMQs are used where a publisher - subscriber model is employed. The usage of this further leads to the bottlenecks in publisher when there are more threads writing to the publisher, but publisher has fixed number of threads to write to message broker partitions. This bottleneck leads to the decrease in the performance and increase in the response time. In this paper, we present the methodology and the pipeline implementation to decrease the bottleneck and improve the time taken for publish - subscribe model for the microservices and reduce the CPU and memory usage of the containers where the microservice is running.","PeriodicalId":265412,"journal":{"name":"2022 IEEE 13th International Conference on Software Engineering and Service Science (ICSESS)","volume":"488 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 13th International Conference on Software Engineering and Service Science (ICSESS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSESS54813.2022.9930270","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The new age software should be highly scalable and easily maintainable. The most used architecture to ensure this is the microservice architecture. The software is composed of independent small services in microservice architecture that communicate over well-defined APIs. The communication for the asynchronous flows cannot be done by HTTP APIs which are synchronous (request-reply pattern) as it leads to high consumption of the resources which in turn leads to increase in the traffic of both the microservices. In order to tackle this problem for asynchronous nature, a message queue like Kafka, RabbitMQs are used where a publisher - subscriber model is employed. The usage of this further leads to the bottlenecks in publisher when there are more threads writing to the publisher, but publisher has fixed number of threads to write to message broker partitions. This bottleneck leads to the decrease in the performance and increase in the response time. In this paper, we present the methodology and the pipeline implementation to decrease the bottleneck and improve the time taken for publish - subscribe model for the microservices and reduce the CPU and memory usage of the containers where the microservice is running.
使用Kafka Connect的微服务之间的服务间通信
新时代的软件应该是高度可伸缩和易于维护的。确保这一点最常用的体系结构是微服务体系结构。该软件由微服务架构中的独立小服务组成,这些服务通过定义良好的api进行通信。异步流的通信不能通过同步(请求-应答模式)的HTTP api来完成,因为它会导致资源的大量消耗,进而导致两个微服务的流量增加。为了解决异步性质的这个问题,在采用发布者-订阅者模型的地方使用了像Kafka, rabbitmq这样的消息队列。当有更多的线程写入到发布者,但发布者有固定数量的线程写入到消息代理分区时,这种使用会进一步导致发布者出现瓶颈。这个瓶颈会导致性能下降和响应时间增加。在本文中,我们提出了方法和管道实现,以减少瓶颈,改善微服务的发布-订阅模型所需的时间,并减少微服务运行的容器的CPU和内存使用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
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学术官方微信