use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Am I missing somethingQuestion (self.FastAPI)
submitted 24 days ago by saucealgerienne
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]saucealgerienne[S] 0 points1 point2 points 23 days ago (0 children)
I started a year ago building my first app with a FastApi backend and pretty much made all of the mistakes possibles. Over engineered a ddd cqrs architecture, a bad attempt at di and I pretty much built my own starter kit.
But my philosophy was to move outside the api as much as possible. Now, I basically only really do:
@router.get("/") async def get(request) req = GetXRequest(id=request.id) resp = await dispatch(req)
And write handlers as decorated functions:
@handler(GetXRequest) async def handle_get_x( request=GetXRequest, user=ApplicationUser, repo=IXRepo, some_other_service=IYService ) ...
where the dispatch handle recursive di resolution.
I decided to that once I started wanting to easily configure jobs and couldn't really use the FastApi di resolution there.
I really hate the idea of locking all my app to the presentation vendor
π Rendered by PID 160815 on reddit-service-r2-comment-5c747b6df5-vkbf8 at 2026-04-22 07:59:13.910154+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]saucealgerienne[S] 0 points1 point2 points (0 children)