Skip to content

Commit 1cd83a9

Browse files
nanotaboadaCopilot
andcommitted
docs(readme): fix caching layer attribution in architecture description
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 82a370f commit 1cd83a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ Proof of Concept for a RESTful API built with [Python 3](https://www.python.org/
6060
```text
6161
/
6262
├── main.py # Entry point: FastAPI setup, router registration
63-
├── routes/ # HTTP route definitions + dependency injection
63+
├── routes/ # HTTP route definitions, dependency injection + caching
6464
│ ├── player_route.py
6565
│ └── health_route.py
66-
├── services/ # Async business logic + cache management
66+
├── services/ # Async business logic
6767
│ └── player_service.py
6868
├── schemas/ # SQLAlchemy ORM models (database schema)
6969
│ └── player_schema.py
@@ -147,7 +147,7 @@ graph RL
147147

148148
**Composition Root Pattern:** The `main` module acts as the composition root, creating the FastAPI app and registering all routers. This pattern enables dependency injection via `Depends()`, improves testability, and maintains clear separation of concerns.
149149

150-
**Layered Architecture:** HTTP requests flow through distinct layers: `routes``services``schemas``databases`. Each layer has a specific responsibility — routes handle HTTP mapping and validation, services contain business logic and caching, schemas define the ORM model, and databases manage the async session.
150+
**Layered Architecture:** HTTP requests flow through distinct layers: `routes``services``schemas``databases`. Each layer has a specific responsibility — routes handle HTTP mapping, validation, and in-memory caching, services contain business logic, schemas define the ORM model, and databases manage the async session.
151151

152152
**Color Coding:** Core packages (blue) implement the application logic, external dependencies (red) are third-party frameworks and ORMs, and tests (green) ensure code quality.
153153

0 commit comments

Comments
 (0)