Digitala Vetenskapliga Arkivet

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
OPTIMIZING DATA PIPELINES FOR PERFORMANCE TEST RESULT DATA BASED ON LATENCY, THROUGHPUT, AND SCALABILITY
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
OPTIMISERING AV DATA-PIPELINES FÖR TEST RESULTAT DATA AV PRESTANDA UTIFRÅN LATENS, GENOMSTRÖMNING SAMT SKALBARHET (Swedish)
Abstract [en]

Data is the new currency in a world where technology has evolved rapidly. To process raw data and store it, we use a data pipeline, which is a system that automates the collection, transformation, and storage of data from various sources for analysis or other purposes. In the data pipeline, something called a message broker is used, which is a middleware component that enables communication between different applications or services by routing and managing messages. It also has the ability to improve the latency and throughput of the data pipeline. Data pipelines can also use something called a communication protocol which defines a set of rules or standards for how data is exchanged between systems or devices over a network. However, there are so many different kinds of message brokers and communication protocols to choose from when building a data pipeline, that it is difficult to know which tools to use for what purpose. By performing a quantitative analysis of using Kafka in a data pipeline versus not using Kafka and comparing two different communication protocols, REST and gRPC the thesis project aims to provide a scientifically-grounded approach to select and implement the most effective solution when designing a data pipeline based on latency, throughput, and scalability. This approach aims to enable informed decision-making for future work in the area, contributing to existing research and knowledge about designing data pipelines depending on different use cases. The findings based on the evaluation criteria such as latency, throughput, and scalability, suggest that gRPC Remote Procedure Call (gRPC) with Kafka has higher throughput compared to REstful State Transfer (REST) with and without Kafka. Adding Kafka on top of REST does not provide any improvement in throughput. Meanwhile, REST without Kafka has a lower latency than gRPC with and without Kafka, and the addition of Kafka on top of REST also does not improve latency. The scalability results for both communication protocols show that using Kafka on top of a data pipeline increases scalability and that REST with or without Kafka had the highest user count, but gRPC overall had the highest Requests Per Second (RPS).

Abstract [sv]

Data är den nya valutan i en värld där tekniken har utvecklats snabbt. För att bearbeta rådata och lagra dem använder vi något som kallas en datapipeline, ett system som automatiskt samlar in, transformerar och lagrar data från olika källor för analys eller andra syften. I datapipelinen används något som kallas en message broker vilket är en mjukvarukomponent som möjliggör kommunikation mellan olika applikationer eller tjänster genom att dirigera och hantera meddelanden. Message brokers kan också förbättra latens och genomströmning i datapipelinen. Data pipelines kan också använda något som kallas kommunikationsprotokoll som definierar ett set av regler eller standarder för hur data utbyts mellan system eller enheter över ett nätverk. Det finns dock så många olika typer av message brokers och kommunikationsprotokoll att välja mellan när man bygger en datapipeline att det är svårt att veta vilka verktyg man ska använda för vilket ändamål. Genom att utföra en kvatitativ analys av att använda Kafka, som är en message broker, i en datapipeline jämfört med utan, samt jämföra två olika kommunikationsprotokoll, REST och gRPC, med olika arkitekturer är syftet med avhandlingsprojektet att tillhandahålla en vetenskapligt grundad metod för att välja och implementera den mest effektiva lösningen när man designar en datapipeline baserat på latens, genomströmning, och skalbarhet. Detta tillvägagångssätt kommer att möjliggöra välgrundat beslutsfattande för framtida arbete inom området och bidra till befintlig forskning och kunskap om utformning av datapipelines beroende på olika användningsfall. Resultaten från utvärderingen baserat på kriterier som latens, genomströmning, och skalbarhet tyder på att gRPC med Kafka har högre genomströmning jämfört med REST med och utan Kafka. Att lägga till Kafka ovanpå REST ger inte någon förbättring av genomströmningen. Samtidigt har REST utan Kafka en lägre latens än gRPC med och utan Kafka, och tillägget av Kafka ovanpå REST förbättrar inte heller latensen. Skalbarhetsresultaten för båda kommunikationsprotokollen visar att användning av Kafka ovanpå en datapipeline ökar skalbarheten och att REST med eller utan Kafka hade det högsta användarantalet men att gRPC totalt sett hade den högsta RPS.

Place, publisher, year, edition, pages
2025. , p. 67
Series
TRITA-EECS-EX ; 2025:486
Keywords [en]
Data pipeline, Microservices, Kafka, Message brokers, Communication protocols, REST, gRPC
Keywords [sv]
Data pipeline, Mikrotjänster, Kafka, Message brokers, Kommunikations protokoll, REST, gRPC
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-368127OAI: oai:DiVA.org:kth-368127DiVA, id: diva2:1987402
External cooperation
Ericsson AB
Supervisors
Examiners
Available from: 2025-08-11 Created: 2025-08-06 Last updated: 2025-08-11Bibliographically approved

Open Access in DiVA

fulltext(2330 kB)235 downloads
File information
File name FULLTEXT01.pdfFile size 2330 kBChecksum SHA-512
aa9efa3005454967feb9f91972e5b5d6778f821906db39b32eb3ed7da9ac8577bb0f0b52289a0f639202298b9eb59a0ddf7eedc4070550e43ac285e6ff35385f
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: 238 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: 760 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