-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define architecture #38
Comments
@yolile and I reviewed, and prepared the following questions/comments: Just to confirm:
Questions/comments:
|
I see there's a PR to document how migrations work in SQLModel: fastapi/sqlmodel#512 Current version of docs can be previewed here (linked from PR) (note: the docs aren't rendering correctly): https://639e7f62ce461c1a81789517--sqlmodel.netlify.app/advanced/migrations/ |
We have been considering #10 and the financial documents, which are currently proposed to be uploaded to S3. FYI, we are considering whether it would be simpler to just store these files in PostgreSQL as A bonus is that it makes access control and data deletion much simpler (one system, instead of two). In the app, to have the best performance, SQLModel would need to select the We are confirming with our server maintenance consultants if we've missed any concerns with this approach. |
I heard back from our server maintenance consultants. For completeness, my message to them was:
Their response is, in short, that adding 10s of GBs to a database will indeed slow down the backup/restore process (but OCP already backs up a DB of 100s of GBs, so this is not an issue). Otherwise, the factors are as above. So, I would propose to simply (1) store the files as a |
Correct.
Yes, we will be using Alembic
As I could see in the documentation, repeated-tasks does not allow to establish specific times as a scheduler, it only repeats every X time from an event such as the start of the application, so it will not allow us to set, for example, that the update from the API is done in a specific time like the beginning of the day. I found other options to try like
Turbopack is not yet ready for production use, and it can only be used with Next.js at the moment. As the project is small, it is an excellent opportunity to test Vite, which has become very popular as an alternative to create-react-app.
According to the documentation, it's used under the hood
I created the ticket for the Sentry integration in #47. You can provide the URL there. |
I am okay with using Vite, but is there any reason not to use Webpack? For scheduled tasks, could we not just use cron? e.g. in other projects we run, for example:
In this project, one option is is to write a simple CLI using typer (Click-based, same author as fastapi). We can share the SQLModel models across the typer CLI and fastapi API. |
Frontend
Framework UI https://react.dev/
Development build https://vitejs.dev/
Components library definition https://storybook.js.org/
UI Components Options:
Backend
FastAPI https://fastapi.tiangolo.com/lo/
ORM https://sqlmodel.tiangolo.com/
Database: Postgres
Cognito SDK https://docs.aws.amazon.com/code-library/latest/ug/python_3_cognito-identity-provider_code_examples.html
Scheduled processes https://typer.tiangolo.com/
AWS SES (emails) https://docs.aws.amazon.com/code-library/latest/ug/python_3_ses_code_examples.html
Test Library https://www.starlette.io/testclient/
The text was updated successfully, but these errors were encountered: