Replies: 2 comments 7 replies
-
@wjcunningham7 @santoshkumarradha - For your kind attention |
Beta Was this translation helpful? Give feedback.
1 reply
-
@wjcunningham7 @AlejandroEsquivel - Wanted to share this issue for your reference - fastapi/fastapi#3316 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Various discussions between Team Psi & Team AQ have led to a unanimous decision to move from flask to FastAPI in the Covalent core & web app components, in the short or medium term. This discussion is to align on why, what & how of this porting.
Impacted components
Impacted files
covalent_ui/app.py
a. Contains few old backend APIs that won't work with the new DB schema & need to be de-commissioned.
b. Flask initialization code that runs APIs.
c. Serving of UI files
covalent_dispatcher/_service/app.py
- Contains few covalent core APIs written using Flask.Roadmap for each impacted compoent
covalent_ui/app.py
It is proposed to de-commission/remove the following APIs as they aren't needed for the GUI & won't work with the new DB schema. These APIs have been re-factored into a set of smaller & different API end points to be consumed by the GUI -
a.
/api/results
b.
/api/dev/results/<dispatch_id>
c.
/api/results/<dispatch_id>
d.
/api/logoutput/<dispatch_id>
It is proposed to migrate the following APIs to FastAPI -
a.
/api/webhook
b.
/api/draw
flask_socketio
implementation. In addition, the task of serving the UI will also be moved to FastAPI to maintain a clean exit from Flask. Additionally, it is proposed to keep this app.py lean and have minimal wrapper FastAPI code. Only initialization & first level configurations will be done in this file. The implementation of API routes & other details will be done outside this file and injected into the FastAPI instance initiated from here.Note : All of the above changes are being undertaken by Team Psi as part of the DB revamp excercise.
covalent_dispatcher/_service/app.py
It is proposed that Team AQ takes responsibility of ideation & execution of porting to FastAPI.Team AQ have requested for a single team to take ownership of the FastAPI migration. Team Psi will also take up migration of the above file. It is suggested that a single FastAPI instance initialized incovalent_ui/app.py
be used as the hook for both Covalent core & Covalent web app APIs when they are ported to FastAPI.Pending decisions
Team Psi is waiting for Team AQ to come back with a plan of action forTeam Psi will also take up migration of the above file.covalent_dispatcher/_service/app.py
.Beta Was this translation helpful? Give feedback.
All reactions