kth.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparing Throughput and Latency Differences between Monolithic Architecture and AMQP Communicating Microservice Architecture
KTH, School of Electrical Engineering and Computer Science (EECS).
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

This study aims to provide some clarity in the current performance differences between monolithic architecture and microservice architectures that are using the more modern, asynchronous IPC:s, when looking at latency and throughput. The research project was carried out by investigating and replicating a user-invite application previously built by the case company as a monolithic system, in a microservice architecture. The systems were then compared to each other by using JMeter to send each system a load of requests, ranging from 100 requests at the lower end to 700 requests at the higher end. The result was that for both latency and throughput, the monolithic system showed a significant advantage over the microservice system. The latency comparison showed that the monolithic system resolved its requests on average in 40% of the time that it would take for the microservice system to resolve them. The throughput comparison showed that when facing fewer requests, the monolithic system could handle significantly more requests per second than the microservice system. This also held up when facing more requests, however the advantage became smaller the more requests were handled. In conclusion, for a system of this scale, the monolithic architecture seems to perform better than a microservice system in terms of latency and throughput.

Abstract [sv]

Denna studie syftar till att ge viss klarhet i de nuvarande prestandaskillnaderna mellan monolitisk arkitektur och microservice-arkitekturer som använder de mer moderna, asynkrona IPC:erna när man tittar på latens och genomströmning. Forskningsprojektet genomfördes genom att undersöka och replikera en användare-inbjudan-applikation som tidigare byggts av caseföretaget som ett monolitiskt system, i en microservice-arkitektur. Systemen jämfördes sedan med varandra genom att använda JMeter för att skicka en mängd förfrågningar till båda systemen, från 100 förfrågningar i den lägre änden till 700 förfrågningar i den högre änden. Resultatet var att för både latens och genomströmning visade det monolitiska systemet en betydande fördel jämfört med microservice-systemet. Latensjämförelsen visade att det monolitiska systemet löste sina förfrågningar i genomsnitt på 40% av tiden som det skulle ta för microservice-systemet att lösa dem. Genom-strömningsjämförelsen visade att det monolitiska systemet kunde hantera betydligt fler förfrågningar per sekund än microservice-systemet när det stod inför färre förfrågningar. Detta höll även i sig när man fick fler förfrågningar, men fördelen blev mindre ju fler förfrågningar som hanterades. Sammanfattningsvis, för ett system av denna skala, verkar den monolitiska arkitekturen prestera bättre än en microservice arkitektur när det gäller latens och genomströmning.

Place, publisher, year, edition, pages
2024. , p. 34
Series
TRITA-EECS-EX ; 2024:91
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-347469OAI: oai:DiVA.org:kth-347469DiVA, id: diva2:1867779
Supervisors
Examiners
Available from: 2024-06-20 Created: 2024-06-11 Last updated: 2024-06-20Bibliographically approved

Open Access in DiVA

fulltext(788 kB)354 downloads
File information
File name FULLTEXT01.pdfFile size 788 kBChecksum SHA-512
4f7631793a0314f2898d72484f6abed57711894db782034adfd36b7a42073c57c7c05f8bcd3b471d6dcaf61534813c4cbb24798ee36c1227fd39a31e38c948f2
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 354 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 233 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf