Return to search

A high-performance API for smart content-driven mobile applications

Nowadays, smartphones are one of the main mediums to transfer content to clients and they provide a good interface for the delivery of digital therapeutics (DTx). Application Programming Interfaces (APIs) are keystones for any service-based mobile application to manage the data transfer between the clients and the server(s). At the time of writing, REST and GraphQL are arguably the most popular API types. These APIs provide simplicity, efficiency, and scalability for data-driven applications. However, we can question the validity of these qualities when it comes to content-driven applications such as DTx apps for example. The objective of this project is to decide whether common data-driven API types are suitable for products where the content is not created by the users, but by content creators, or if a new API type could be developed which is more suitable for this use case. Useful insights are presented on how standard APIs should be adapted to address this problem. Moreover, this document presents a new prototype of API that is supposed to help content creators with content creation while providing high performance. Additionally, an advanced test platform is introduced in order to help the comparison of the implementation in terms of performance. This thesis shows that GraphQL is not a suitable method for the initial problem. It also shows that REST is a good standard adapted for scalability in the present scope. The prototype displayed guarantees great performances by means of preloading, thus, suffers high concurrency in terms of performances when scaled up. However, potential solutions are given in order to counter this. / Smartphones är idag ett av de viktigaste verktygen för företag att leverera innehåll till användare och de utgör ett bra gränssnitt för digitala terapier (DTx). API:er (Application Programming Interfaces) är en grundsten i alla tjänstebaserade mobilapplikationer för att hantera dataöverföringen mellan klienterna och servern/servrarna. I skrivande stund är REST och GraphQL de mest populära API-typerna. Dessa API:er anses vara enkla, effektiva och skalbara för många tillämpningar, däremot är de inte nödvändigtvis optimala för innehållsdrivna applikation såsom DTx-appar. Syftet med det här projektet är att avgöra om vanliga datadrivna API-typer är lämpliga för produkter där innehållet inte skapas av användarna utan av innehållsskapare, eller om en ny API-typ kan utvecklas som är mer lämplig för detta tillämpningsområdet. I denna rapport presenteras insikter om hur standard-API:er bör anpassas för att lösa detta problem. Dessutom presenteras i en ny prototyp av API som hjälper innehållsskapare att skapa innehåll samtidigt som den ger hög prestanda. Dessutom presenteras en avancerad testplattform för att underlätta prestandajämförelser. Denna avhandling visar att GraphQL inte är en lämplig metod för innehållsdrivna applikationer, emedan REST är det. Den prototyp som presenteras garanterar bra prestanda med hjälp av så kallad pre-loading, även om prestandan försämras väsentligt vid hög belastning, även om potentiella lösningar föreslås för att åtgärda detta.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:kth-319212
Date January 2022
CreatorsFonteneau, Félix
PublisherKTH, Skolan för elektroteknik och datavetenskap (EECS)
Source SetsDiVA Archive at Upsalla University
LanguageEnglish
Detected LanguageSwedish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess
RelationTRITA-EECS-EX ; 2022:253

Page generated in 0.0122 seconds