Evaluating the performance andusability of HTTP vs gRPC in communication between microservices
2023 (engelsk)Independent thesis Basic level (degree of Bachelor), 10 poäng / 15 hp
Oppgave
Abstract [en]
Microservices is an architectural technique that has only gotten more popular as the need for scalable and performant internet-based applications has grown. One of the characteristics of microservices is communication through lightweight protocols like HTTP. These protocols are usually provided through frameworks that enable an abstracted form of communication and when implementing services using the Go language, the most common frameworks are gRPC and net/http. The aim of this thesis is to evaluate and compare the performance and usability of gRPC and HTTP frameworks in order to determine which one is better suited for microservices so that developers can be empowered to be more informed when making choices about their technology. We investigated the performance and usability by conducting two experiments. For the first one, we created two services that were implemented as identically as possible using Go but one communicated using the net/http framework and the other using gRPC. The services implemented methods that return small, medium, and large payload sizes and were then load-tested at varying numbers of virtual users. The second experiment was conducted by recruiting a set of participants that were tasked with completing two sets of coding tasks once using gRPC and once using HTTP. After the tasks were completed they were asked to fill out a questionnaire to measure their experience using the frameworks, the answers were then turned into a score which we could use to analyze the frameworks. The results from the performance experiment indicated that gRPC performed better in terms of throughput and latency, while HTTP performed better in scalability, and the results from the usability experiment indicated that HTTP was found to be more usable by the participants.
sted, utgiver, år, opplag, sider
2023. , s. 48
Emneord [en]
HTTP, gRPC, Cloud Computing, Load testing, Micro-services
HSV kategori
Identifikatorer
URN: urn:nbn:se:bth-24845OAI: oai:DiVA.org:bth-24845DiVA, id: diva2:1768795
Fag / kurs
PA1445 Kandidatkurs i Programvaruteknik
Utdanningsprogram
PAGPT Software Engineering
Presentation
2023-05-31, Blekinge Tekniska Högskolan - Sal C245, Valhallavägen 1, Karlskrona, 10:15 (engelsk)
Veileder
Examiner
2023-06-272023-06-152023-06-27bibliografisk kontrollert