Original title:
Distributed Tasks in an Enterprise Computing Environment
Translated title:
Distributed Tasks in an Enterprise Computing Environment
Authors:
Tichavský, Milan ; Rychlý, Marek (referee) ; Burget, Radek (advisor) Document type: Bachelor's theses
Year:
2023
Language:
eng Publisher:
Vysoké učení technické v Brně. Fakulta informačních technologií Abstract:
[eng][cze]
V architektuře orientované na mikroslužby jsou zprávy běžně používaným prostředkem pro komunikaci mezi jednotlivými službami. Obecně je zde potřeba naslouchat zprávám odeslaným na sběrnici a reagovat na ně spouštěním úloh. Tato práce prezentuje všechny podstatné úvahy k vyřešení tohoto problému. Přichází s rámcem pro spouštění úloh, který vykonává úlohy v libovolných kontejnerech na OpenShiftu. Řešení se skládá z API napsaného ve Flasku, které obsahuje spouštěcí logiku, a klienta, který přes STOMP příjmá zprávy ze sběrnice a poslílá je na API. Součástí jsou i testovací scénáře, které předvádějí funkčnost celého systému. Řešení je vyhodnocováno porovnáváním s existující aplikací postavené na nástroji Jenkins. Rovněž je diskutovaný alternativní návrh využívající Tekton. Druhým problémem, kterým se tato práce zabývá, je provádění pravidelně naplánovaných úloh. Namísto implementace vlastního řešení navrhuje použití Kubernetes objektů CronJob.
In a microservices architecture, messages are commonly used for communication between individual services. There is a general need to listen to messages sent on a message bus and react to them by triggering job execution. This thesis presents all essential considerations to be made when solving this problem. It comes up with an execution framework that enables such workflow by executing tasks in arbitrary container images on OpenShift. The solution consists of a Flask API that contains the execution logic and a STOMP client written in Python that receives messages from the message bus and sends them to the API. Test scenarios are included to showcase the functionality, and the solution is evaluated by comparing it with a Jenkins setup. Also, an alternative design using Tekton pipelines is discussed. The second problem this thesis focuses on is the execution of periodically scheduled tasks and suggests using Kubernetes CronJob objects instead of implementing anything custom.
Keywords:
ActiveMQ; distrubuované výpočty; kontejnerizace; Kubernetes; mikroslužby; OpenShift; posílání zpráv; spouštění úloh; STOMP; Tekton; ActiveMQ; containerization; distributed computing; job execution; Kubernetes; messaging; microservices; OpenShift; STOMP; Tekton
Institution: Brno University of Technology
(web)
Document availability information: Fulltext is available in the Brno University of Technology Digital Library. Original record: http://hdl.handle.net/11012/210524