2021: Migration of Artemis Architecture From Monolithic to Microservices

Master's theses

Merlin Mehmed



Artemis is an open-source learning platform that uses a monolith architecture for its server application. This architecture is beneficial at the beginning of a project but causes problems in large projects. First, when developers introduce code changes, they need to build the whole application no matter how significant the difference is. This results in slow build and test phases. Therefore, developers need to wait for them to complete until they can deploy their changes, slowing down the development process as a whole. Another drawback of this architecture is inefficient scaling. Artemis supports horizontal scaling by running several Artemis instances to handle the higher load during real-time quiz exercises or exams. The current implementation does not allow scaling only part of the application, leading to inefficient use of computational resources. This thesis sets the foundations of the migration of the Artemis architecture towards microservices. It helps speed up the development process and support efficient building, testing and scaling. It discusses the new architecture and the roles of its new components. It also describes the services extraction process from the Artemis monolith and updates to the deployment pipeline. During the thesis, we extract two microservices from the monolith. This change allows scaling those services independently. The services have a small size, therefore, the build and test processes run fast, leading to shorter waiting times. It also has a positive effect on the availability of the system. Failure in one service will not cause failure in other services. Additionally, we create Kubernetes deployment resources for the new architecture to suit the future deployment process. Deploying on a Kubernetes cluster makes scaling and failure handling much easier as it provides autoscaling and containers selfhealing.

Head of Research Group

Prof. Dr. Stephan Krusche

Administrative office

Sophia Adelmeier

Office: 01.07.052
Phone: +49 (89) 289-18206
Fax: +49 (89) 289-18207 Boltzmannstraße 3
85748 Garching b. München