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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is a modular monolith Fast API project that uses the latest and greatest to
4
4
5
5
For quick setup instructions, jump to the [Setup and development](#setup-and-development) section.
6
6
This project serves as a proof of concept and starting point for building modular monolith applications with FastAPI.
7
-
For technical details, see [Choosing technology](#project-implementation)
7
+
For technical details, see [Project Implementation](#project-implementation)
8
8
9
9
## Architecture and Design
10
10
@@ -131,7 +131,7 @@ the [Purpose of sub applications](https://www.reddit.com/r/FastAPI/comments/11yz
131
131
**Alternatives:** we don't have to use mounts, we could just run multiple application instances under the same python process. uvicorn exposes [`serve`](https://gist.github.com/tenuki/ff67f87cba5c4c04fd08d9c800437477?permalink_comment_id=4236491#gistcomment-4236491) which can be used to orchestrate multiple applications under the same python process, this however forces us to use different ports for each application! this may be desirable and puts us even closer to the microservice architecture.
132
132
**Bonus point to the alternative:** by manutally creating the AsyncIO event loop we can mirror javascript promises and make asyncio act like promises when used with `asyncio.create_task`[How can I start a Python async coroutine eagerly?](https://stackoverflow.com/a/77268945/12603110)
133
133
134
-
we could go even further and implement [Domain-driven design with Python and FastAPI](https://www.actidoo.com/en/blog/python-fastapi-domain-driven-design) which goes as far as to force "restriction of import between domains" is a little bit of a stretch, stopping here is a good compromise.
134
+
we could go even further and implement [Domain-driven design with Python and FastAPI](https://www.actidoo.com/en/blog/python-fastapi-domain-driven-design) which goes as far as to force "restriction of import between domains" is a little bit of a stretch, so it was only partially implemented
135
135
136
136
### Context aware logger
137
137
@@ -187,7 +187,7 @@ Both services use [SQLModel](https://sqlmodel.tiangolo.com/) for database operat
187
187
```bash
188
188
# User 1 adopts Pet 1
189
189
curl -X 'POST' \
190
-
'http://127.0.0.1:8000/user/users/1/pets/1' \
190
+
'http://127.0.0.1:8000/user/1/pets/1' \
191
191
-H 'accept: application/json' \
192
192
-d ''
193
193
```
@@ -217,7 +217,7 @@ Response shows the user with their newly adopted pet:
0 commit comments