Evaluating Cost Efficiency in Scaling Software Architectures: A Comparative Study of Vertical and Horizontal Scaling Approaches in Financial Workflows
2025 (Engelska)Självständigt arbete på avancerad nivå (masterexamen), 20 poäng / 30 hp
Studentuppsats (Examensarbete)
Abstract [en]
This thesis investigates the cost efficiency of vertical and horizontal scaling approaches in financial software architectures by implementing and evaluating equivalent monolithic and microservice versions of a high-throughput brokerage system. The research examines what bottlenecks limit effective scaling in each architecture and identifies when a monolithic architecture with vertical scaling should be chosen over a microservice architecture with horizontal scaling based on performance-to-cost considerations.
The study implements a financial system handling both IO-intensive order processing and CPU-intensive price update workflows commonly found in brokerage systems. Both architectures are deployed in a Kubernetes environment with equivalent resources. Both incorporating realistic security features like mutual TLS encryption, and are subjected to identical workloads.
Results reveal that neither architecture universally outperforms the other across all scenarios. The monolithic architecture demonstrates significantly higher initial order throughput but struggles to effectively scale both workflows simultaneously, with performance gains heavily dependent on database resources rather than system resources. The microservice architecture, while starting with much lower throughput, scales both workflows more effectively and continuously, but never catches up with the monolithic order processing capability. Service mesh technology significantly impacts microservice performance by adding substantial communication latency and resource consumption.
The findings suggest that monoliths are better suited for simple systems with single dataflows, particularly those leveraging complex database operations, while microservices offer better resource control for multi-dataflow systems despite communication overhead. This research contributes valuable insights for architects and developers designing scalable cloud-native systems, highlighting that architectural decisions should consider specific workflow characteristics rather than following universal best practices.
Ort, förlag, år, upplaga, sidor
2025. , s. 58
Serie
UMNAD ; 1542
Nyckelord [en]
Computer Science, Distrubuted Systems, Scaling, Cost Efficency
Nationell ämneskategori
Datavetenskap (datalogi)
Identifikatorer
URN: urn:nbn:se:umu:diva-239878OAI: oai:DiVA.org:umu-239878DiVA, id: diva2:1966051
Externt samarbete
Clear Street
Utbildningsprogram
Civilingenjörsprogrammet i Teknisk datavetenskap
Handledare
Examinatorer
2025-06-112025-06-092025-06-11Bibliografiskt granskad