MICROSERVICE AND MONOLITH PERFORMANCE COMPARISON IN TRANSACTION APPLICATION

Alexander Jason Lauwren, Y.b Dwi Setianto

Abstract


When it comes to building or developing an online system, developers need to choose what kind of architecture will be used for the system. When facing the challenge, a developer needs the most suitable architecture that most fit the case whether uses microservices or monolithic architecture. Both architectures offer different benefits. Microservice recently become popular because many large companies start migrating from monolith to microservices but on the other hand. many organizations are still unfamiliar with microservices. Despite microservice providing many benefits, it also has challenges. With that being said, it is common that many organizations choose to stick with monolithic architecture since it was easier to maintain, develop, and deploy. To find out the better architecture performance-wise, API provided by both application need to be tested. The test was conducted by hitting the API several times with many threads concurrently. The test result is latency and request time, success rate needs to be monitored as well since the error occurred during load testing. With the data collected it could be shown which architecture performs better. The test results obtained by testing both monolith and microservice with several scenarios are quite unexpected. From the data, it turns out that for most features, average latency from the monolith is better than microservice. Meanwhile in many other scenarios, microservice edge monolith on the close gap in terms of success rate. The latency average number result for microservice is slightly worse because there are more success requests and taking more time.


Keywords


Microservice; Monolith; Latency; Performance

Full Text:

PDF

References


K. Gos and W. Zabierowski, “The Comparison of Microservice and Monolithic Architecture,” in 2020 IEEE XVIth International Conference on the Perspective Technologies and Methods in MEMS Design (MEMSTECH), Lviv, Ukraine, Apr. 2020, pp. 150–153. doi: 10.1109/MEMSTECH49584.2020.9109514.

A. Bucchiarone et al., “From Monolithic to Microservices,” IEEE SOFTWARE, p. 6.

V. Desai, “Microservices: Architecture and Technologies,” IJRASET, vol. 8, no. 10, pp. 679–686, Oct. 2020, doi: 10.22214/ijraset.2020.31979.

D. Nevedrov, “Using JMeter to Performance Test Web Services,” p. 11.

A. Neumann, N. Laranjeiro, and J. Bernardino, “An Analysis of Public REST Web Service APIs,” IEEE Trans. Serv. Comput., vol. 14, no. 4, pp. 957–970, Jul. 2021, doi: 10.1109/TSC.2018.2847344.

F. Schmager, N. Cameron, and J. Noble, “GoHotDraw: evaluating the Go programming language with design patterns,” in Evaluation and Usability of Programming Languages and Tools on - PLATEAU ’10, Reno, Nevada, 2010, pp. 1–6. doi: 10.1145/1937117.1937127.

S. Sulander, “Microservices Architecture in Open Retail Interface for Public Transport Tickets,” Distributed systems, p. 60.

N. Viennot, M. Lécuyer, J. Bell, R. Geambasu, and J. Nieh, “Synapse: a microservices architecture for heterogeneous-database web applications,” in Proceedings of the Tenth European Conference on Computer Systems, Bordeaux France, Apr. 2015, pp. 1–16. doi: 10.1145/2741948.2741975.

M. Kalske, N. Mäkitalo, and T. Mikkonen, “Challenges When Moving from Monolith to Microservice Architecture,” in Current Trends in Web Engineering, vol. 10544, I. Garrigós and M. Wimmer, Eds. Cham: Springer International Publishing, 2018, pp. 32–47. doi: 10.1007/978-3-319-74433-9_3.

M. Villamizar et al., “Evaluating the monolithic and the microservice architecture pattern to deploy web applications in the cloud,” in 2015 10th Computing Colombian Conference (10CCC), Bogota, Colombia, Sep. 2015, pp. 583–590. doi: 10.1109/ColumbianCC.2015.7333476.

O. Al-Debagy and P. Martinek, “A Comparative Review of Microservices and Monolithic Architectures,” in 2018 IEEE 18th International Symposium on Computational Intelligence and Informatics (CINTI), Budapest, Hungary, Nov. 2018, pp. 000149–000154. doi: 10.1109/CINTI.2018.8928192.




DOI: https://doi.org/10.24167/proxies.v5i2.12447

Copyright (c) 2024 Proxies : Jurnal Informatika



View My Stats