Skip to content
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

Migrate NoScrum to use FastAPI instead of Flask #20

Open
trafficone opened this issue Mar 20, 2022 · 0 comments
Open

Migrate NoScrum to use FastAPI instead of Flask #20

trafficone opened this issue Mar 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@trafficone
Copy link
Owner

Use FastAPI

Why?

It has the ability to significantly reduce issues around input validation with LESS CODE than Flask.

It has the ability to automatically generate OpenAPI docs to be ingested by users/integrating services.

It can run async out of the box and can run with Go and Node.js in terms of performance while still offering the simplicity of Python.

Changes

  • Unify API function to simplify migration.
  • Type check inputs/outputs to API functions
  • Further separate API functions and database functions
  • Authentication overhaul as FlaskUser and FastAPIUser are not similar.

Additional Considerations

  • Leverage async/await to maximize processing while waiting for the database to get back.
  • Migrate database models to DynamoDB or similar object store
  • Simplify process of generating API keys for both users and 3rd party developers.
  • Don't rely on server state to facilitate migration to serverless architecture
@trafficone trafficone added the enhancement New feature or request label Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant