Design and Implementation of a Decentralized Message Bus for Microservices

被引:0
|
作者
Kookarinrat, Pakorn [1 ]
Temtanapat, Yaowadee [1 ]
机构
[1] Thammasat Univ, Dept Comp Sci, Bangkok, Thailand
来源
2016 13TH INTERNATIONAL JOINT CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING (JCSSE) | 2016年
关键词
microservices; message bus; software architecture;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A new software architecture, known as microservices, becomes rapidly popular recently. Microservices could help developers cope well with the problems of software complexity and demands on an adaptive development process that needs to respond to changes quickly. In this architecture, a single monolithic large application would be divided into small multiple isolated services. They are separately deployed and communicated to other services via remote calls. This architectural style allows any changes on one service not affecting the others. However, if services directly make remote calls, it would create interdependencies and tight couplings between them. To remove such problem, this paper proposes a decentralized message bus to use as a communication tool between services. Our message bus provides a framework for services to collaborate. It divides into four main components, public API, message bus, messaging and service discovery. The API uses the HTTP and RESTful style of communication. We use decentralized service discovery to avoid a single point of failure of the system. The messaging uses a simple TCP connection with only a header and body in its message. We also define three necessary communication messages for the services, viz. request/response, notification and publish/subscribe. The proposed framework is implemented and tested with a real-world scenario. It works correctly without any problem. Also, to realize how it could be scaled, we run the system continuously with incremental services and traffics. From the observation on the resource consumption of CPU, memory and network I/O, we found that the network consumption grows linearly while the CPU and memory usages have little change in consumption.
引用
收藏
页码:183 / 188
页数:6
相关论文
共 50 条
  • [1] Design and implementation of AMQP-based campus message bus system
    Wu, W.-X., 1600, Editorial Board of Journal on Communications (34):
  • [2] VXI bus message-based programmable interface chip design and its implementation
    Xi Tong Cheng Yu Dian Zi Ji Shu/Syst Eng Electron, 12 (94-97):
  • [3] Design and Implementation of LIN bus and USB bus interface
    Huang, Li
    Huang, Hui
    6TH INTERNATIONAL CONFERENCE ON COMPUTER-AIDED DESIGN, MANUFACTURING, MODELING AND SIMULATION (CDMMS 2018), 2018, 1967
  • [4] Design and Implementation of Multi-segment Message Bus in Platform of SOA Based Supervisory Control System
    Guo, Hailong
    Su, Dawei
    Ge, Yiyong
    Lei, Baolong
    Zhang, Kai
    Xu, Liyan
    2017 IEEE CONFERENCE ON ENERGY INTERNET AND ENERGY SYSTEM INTEGRATION (EI2), 2017,
  • [5] Design, Modeling, and Implementation of Robust Migration of Stateful Edge Microservices
    Calagna, Antonio
    Yu, Yenchia
    Giaccone, Paolo
    Chiasserini, Carla Fabiana
    IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT, 2024, 21 (02): : 1877 - 1893
  • [6] Design and implementation of the cooperation based on message
    Wang, Qian-Ping
    Meng, Fan-Rong
    Wang, Hui
    Yang, Hao-Liang
    Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao/Journal of Computer-Aided Design & Computer Graphics, 2000, 12 (11): : 817 - 820
  • [7] Implementation and design of distributed general message
    Fu, Changdong
    Wang, Yong
    Gai, Jiangan
    Pan, Qing
    Jisuanji Gongcheng/Computer Engineering, 1997, 23 (05): : 21 - 23
  • [8] Design and implementation of message middleware manager
    Zhou, Ze-Hua
    Huang, Tao
    Li, Jing
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2002, 39 (03):
  • [9] Reaching consensus in decentralized coordination of distributed microservices
    Xue, Gang
    Deng, Shuiguang
    Liu, Di
    Yan, Zeming
    COMPUTER NETWORKS, 2021, 187
  • [10] Decentralized Smart Surveillance through Microservices Platform
    Nikouei, Seyed Yahya
    Xu, Ronghua
    Chen, Yu
    Aved, Alex
    Blasch, Erik
    SENSORS AND SYSTEMS FOR SPACE APPLICATIONS XII, 2019, 11017