Skip to content

Commit c8cb134

Browse files
Minor change to Architecture header and alt text
1 parent a32e5da commit c8cb134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/architecture.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Architecture"
33
---
44

5-
## Architecture
5+
## Data flow
66

77
This application uses a Post-Redirect-Get (PRG) pattern. The user submits a form, which sends a POST request to a FastAPI endpoint on the server. The database is updated, and the user is redirected to a GET endpoint, which fetches the updated data and re-renders the Jinja2 page template with the new data.
88

@@ -39,6 +39,6 @@ dot.edge('F', 'G')
3939
dot.render('static/webapp_flow', format='png', cleanup=True)
4040
```
4141

42-
![Webapp Flow](static/webapp_flow.png)
42+
![Data flow diagram](static/webapp_flow.png)
4343

4444
The advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side.

0 commit comments

Comments
 (0)