docs: add architecture diagram

This commit is contained in:
steve-chavez
2024-04-08 11:57:03 -05:00
committed by Steve Chavez
parent 5ab317caa0
commit ab73624366
4 changed files with 60 additions and 66 deletions
+56
View File
@@ -0,0 +1,56 @@
@startuml
:user:
package "PostgREST" {
() HTTP as HTTPAPI
HTTPAPI - [Auth]
[Auth] -r.> [ApiRequest]
[ApiRequest] -r.> [Plan]
[Plan] -r.> [Query]
[Query] - () "Connection Pool" : "\t"
[Plan] -u-> [Schema Cache]:uses
[Query] -u-> [Schema Cache]:uses
[Schema Cache] <- () Listener : reloads "\t"
() HTTP as HTTPADMIN
[Admin] - () HTTPADMIN
/'HTTPADMIN <-r[hidden]- [Schema Cache] : "\t\t\t"'/
}
database "PostgreSQL" {
node Authorization {
rectangle "Roles, GRANT, RLS"
}
node API {
rectangle "Functions, Views"
}
rectangle "Tables, extensions" as texts
API -d- texts
}
HTTPAPI <.l- user : "\t"
operator .d-> HTTPADMIN
Listener -r.> "PostgreSQL"
"Connection Pool" -r.> "PostgreSQL" : "\t\t"
note bottom of Auth
Authenticates the user request
end note
note bottom of ApiRequest
Parses the URL syntax
end note
note bottom of Query
Generates the SQL
end note
note top of Listener
LISTEN session
end note
@enduml