FastAPI as a backend framework
Wu, Xiaomin (2024)
Wu, Xiaomin
2024
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2024051512082
https://urn.fi/URN:NBN:fi:amk-2024051512082
Tiivistelmä
This thesis studies the integration of FastAPI, a modern Python web framework, into the Actiweb project, a Building Automation System (BAS), to enhance operational efficiency and responsiveness. Actiweb, developed by Bithouse Oy, specializes in automation solutions for building management systems. The transition from Actiweb 8 to Actiweb 9 involves replacing the PHP backend with FastAPI to meet performance demands.
The technical background section mainly describes the requirements, design considerations, and implementation details. FastAPI's architecture, features, and advantages over other frameworks, notably Node.js, are discussed, highlighting its asynchronous capabilities, memory management, and UI automation stability.
Implementation details cover tools, techniques, and features such as rendering frontend logic, managing endpoints, and implementing authorization through token-based authentication. Evaluation criteria ensure seamless rendering of frontend logic and reliable authorization mechanisms.
Challenges and solutions focus on addressing the high asynchronous requirements of BAS systems, leading to the adoption of FastAPI. Future features include differentiated user security levels and integration into the Actiweb project.
In summary, the use of FastAPI in Actiweb enabled the evolution of the project and helped modernize the BAS system. This paper also highlights the importance of choosing the right tools and techniques in software engineering projects.
The technical background section mainly describes the requirements, design considerations, and implementation details. FastAPI's architecture, features, and advantages over other frameworks, notably Node.js, are discussed, highlighting its asynchronous capabilities, memory management, and UI automation stability.
Implementation details cover tools, techniques, and features such as rendering frontend logic, managing endpoints, and implementing authorization through token-based authentication. Evaluation criteria ensure seamless rendering of frontend logic and reliable authorization mechanisms.
Challenges and solutions focus on addressing the high asynchronous requirements of BAS systems, leading to the adoption of FastAPI. Future features include differentiated user security levels and integration into the Actiweb project.
In summary, the use of FastAPI in Actiweb enabled the evolution of the project and helped modernize the BAS system. This paper also highlights the importance of choosing the right tools and techniques in software engineering projects.