Replies: 1 comment 3 replies
-
Hi @aminalaee, To my knowledge the There is currently an open issue related to improving the documentation and adding more examples, so I'm happy to merge any PRs that provide any framework-specific examples demonstrating things like this. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
First off I wanted to thank you for the great library and the effort behind it.
This might be more of a question than an issue,
Based on the examples I've seen in the docs we pass the whole application inside the
Mangum
adapter. Like:Well this is one convention and works for some projects. For larger projects it makes sense to split the backend into services/functions and let the Lambda scale each separately as explained in the AWS docs here.
I think this should be straightforward with Starlette
Router
or FastAPIAPIRouter
instances which are basically mini ASGI applications.So maybe something like this should work out of the box:
And another handler for another router.
So my question is if this makes sense or I am missing something?
And if this is supported maybe there can be examples or tests demonstrating this?
Beta Was this translation helpful? Give feedback.
All reactions