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.
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.