You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar question and didn't find it.
I searched the FastAPI documentation, with the integrated search.
I already searched in Google "How to X in FastAPI" and didn't find any information.
I already read and followed all the tutorial in the docs and didn't find an answer.
I already checked if it is not related to FastAPI but to Pydantic.
I already checked if it is not related to FastAPI but to Swagger UI.
I already checked if it is not related to FastAPI but to ReDoc.
Commit to Help
I commit to help with one of those options 👆
Example Code
# No code
Description
In order to shorten cold start times on AWS lambda, I was wondering whether it would be possible to write a middleware that would lazily load the router into the app depending on the path that is being transferred by the API gateway. I would love to hear whether it would be technically feasible and if so, if anyone has some ideas on how to realize this.
Cold starts are a hot topic in the fastapi world, this could perhaps be a simple solution to it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
# No code
Description
In order to shorten cold start times on AWS lambda, I was wondering whether it would be possible to write a middleware that would lazily load the router into the app depending on the path that is being transferred by the API gateway. I would love to hear whether it would be technically feasible and if so, if anyone has some ideas on how to realize this.
Cold starts are a hot topic in the fastapi world, this could perhaps be a simple solution to it?
Operating System
Linux
Operating System Details
No response
FastAPI Version
N/A
Pydantic Version
N/A
Python Version
N/A
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions