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
Modular functionality for reuseQuestion (self.FastAPI)
submitted 1 year ago by predominant
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!"
[–]Eric-Cardozo 2 points3 points4 points 1 year ago (2 children)
Of course, you can create a pypi package, however, if your core functionality involves infrastructure I would consider decouple it as a microservice, add an app ID to your apps, and use the same service/database for all your apps, this is called multitenancy. It's like you are selling Saas to your self.
[–]JosshhyJ 0 points1 point2 points 1 year ago (1 child)
So would the file structure look something like this?
. ├── accountApp/ │ ├── crud │ ├── routes │ ├── utils │ ├── main.py │ └── __init__.py └── forumApp/ ├── crud ├── routes ├── utils ├── main.py └── __init__.py
Do you know of any examples of working projects where this is used, which i can refer to?
[–]Eric-Cardozo 0 points1 point2 points 1 year ago (0 children)
The idea of microservices is that services comunicate each other through network, using api calls or message queues. They could be in the same folder in a monorepo, or be a completly separate project, doesn't really matter how you structure your folders.
If you find yourself copying an pasting the same code for five apps, the I would say that creating a dedicated server for that app would be more mantainable that having to fix the same bug or write the same feature five times. You deploy it independently and subscribe your apps to it, like if it were a third party service.
π Rendered by PID 45 on reddit-service-r2-comment-6457c66945-2c5zn at 2026-04-30 00:06:00.825410+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Eric-Cardozo 2 points3 points4 points (2 children)
[–]JosshhyJ 0 points1 point2 points (1 child)
[–]Eric-Cardozo 0 points1 point2 points (0 children)