Prestandaanalys av meddelandesystem och databaser för en patientjournal
2024 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Performance Analysis of Messaging Systems and Databases for a patient record (English)
Abstract [sv]
Denna rapport undersöker prestandan av olika meddelandesystem och databaserför en patientjournalapplikation, med fokus på meddelandesystemen ApacheKafka och Redis i kombination med databaserna MongoDB och EventstoreDB.Syftet är att analysera och jämföra systemens prestanda vid hantering avpatientdata, vilket är kritiskt för att säkerställa effektivitet och datatillgänglighet.Event sourcing är en systemarkitektur där alla händelser som påverkar systemetstillstånd lagras vilket möjliggör återskapning av tidigare systemtillstånd. Detta ärviktigt inom sjukvården för att säkerställa korrekta och spårbara patientjournaler.För att ta reda på vilken kombination av databas och meddelandesystem som vareffektivast användes prestandatester för att mäta latens, throughput ochåterskapningshastighet. Testerna visar att MongoDB är bäst för grundläggandefunktioner medan EventstoreDB är överlägset för event sourcing funktionalitet.Slutsatsen för vad som bör användas varierar utifrån önskvärda egenskaper, för enpatientjournal presterar kombinationen av Apache Kafka och EventstoreDB bäst.
Abstract [en]
This report examines the performance of various combinations of messagingqueues and databases for a patient record application, focusing on the messagingqueues Apache Kafka and Redis in combination with the databases MongoDB andEventstoreDB. The purpose is to analyze and compare the performance of thesecombinations in handling patient data, which is critical for ensuring efficiency anddata availability. Event sourcing is a system architecture where all events affectingthe system's state are stored, allowing for previous system states to be recreatedwhen desired. This is important in healthcare to ensure accurate and traceablepatient records. Performance tests were conducted to determine the most effectivecombination of database and messaging queue by measuring latency, throughput,and the time it takes to recreate any given state. The tests show that MongoDB isbest for basic functions, while EventstoreDB excels in event sourcing functionality.The conclusion on what combination should be used varies based on desiredproperties. For a patient record, the combination of Apache Kafka andEventstoreDB performs best.
Place, publisher, year, edition, pages
2024. , p. 50
Series
TRITA-CBH-GRU ; 2024:326
Keywords [en]
Event Sourcing, Messaging queue, Database, Performance, Apache Kafka, Apache Redis, MongoDB, EventstoreDB
Keywords [sv]
Event Sourcing, Meddelandekö, Databas, Prestanda, Apache Kafka, Apache Redis, MongoDB, EventstoreDB
National Category
Computer Systems
Identifiers
URN: urn:nbn:se:kth:diva-354053OAI: oai:DiVA.org:kth-354053DiVA, id: diva2:1901315
Subject / course
Computer and Systems Sciences
Educational program
Bachelor of Science in Engineering - Computer Engineering
Supervisors
Examiners
2024-09-272024-09-262024-09-27Bibliographically approved