Performance Analysis of RabbitMQ and Nats Streaming for Communication in Microservice

Authors

  • Agung Nur Aprianto Department of Computer Science, Bina Nusantara University, Jakarta, Indonesia
  • Abba Suganda Girsang Department of Computer Science, Bina Nusantara University, Jakarta, Indonesia
  • Yulianto Nugroho Department of Computer Science, Bina Nusantara University, Jakarta, Indonesia
  • Widjaya Kumala Putra Department of Computer Science, Bina Nusantara University, Jakarta, Indonesia

DOI:

https://doi.org/10.26594/teknologi.v14i1.4498

Abstract

In this research, performance testing is performed between the two message brokers, which commonly used in the enterprise, namely RabbitMQ and Nats Streaming. REST is a method that implements the HTTP protocol requests to access and use data. REST is one of the synchronous style methods in microservice, the other style is asynchronous that can be implemented through message broker. REST can be used for communication between services in microservice, since it is using HTTP protocol, the performance will degrade when the amount of request is abundant and less reliable due to its synchronous communication. By using a message broker as the medium of communication between services in microservice, each connected service will not rely on each other and will make the message delivery more guaranteed. By reason, this research will implement a message broker for inter process communication (IPC) in microservice. Today there are many message brokers developed by various companies or communities. In this research, we do experiments with both message brokers. The three aspects will be tested, they are throughput, latency by number of messages and latency by message size. The performance will be evaluated the architecture model that act as producer and consumer. The model is one producer and consumer service. The service will be deployed on docker container

Downloads

Published

2024-03-15

Issue

Section

Articles