-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add plantuml document for a paging optimizations using a cache
- Loading branch information
1 parent
d0a1d39
commit 757b9e7
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
|
||
actor Client as "Client" | ||
control ReverseProxy as "Server Cache" | ||
group Session [Client 1] | ||
Client -> ReverseProxy: /catalog/timeseries/pages?office=SWT | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: no | ||
ReverseProxy -> CDA: /catalog/timeseries/pages?office=SWT | ||
CDA -> Database: keyset pagination query | ||
CDA -> ReverseProxy: cache | ||
CDA -> Client: \n \ | ||
/catalog/timeseries?office=SWT&tsid_start=<1>&tsid_end=<2>\n \ | ||
/catalog/timeseries?office=SWT&tsid_start=<3>&tsid_end=<4>\n \ | ||
/catalog/timeseries?office=SWT&tsid_start=<5>&tsid_end=<6>\n | ||
par thread 1 | ||
Client -> ReverseProxy: /catalog/timeseries?office=SWT&tsid_start=<1>&tsid_end=<2> | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: no | ||
ReverseProxy -> CDA: /catalog/timeseries?office=SWT&tsid_start=<1>&tsid_end=<2> | ||
CDA -> Database: query time series for SWT starting with <1> and ending with <2> | ||
CDA -> Client: time series ids | ||
else thread 2 | ||
Client -> ReverseProxy: /catalog/timeseries?office=SWT&tsid_start=<3>&tsid_end=<4> | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: no | ||
ReverseProxy -> CDA: /catalog/timeseries?office=SWT&tsid_start=<3>&tsid_end=<4> | ||
CDA -> Database: query time series for SWT starting with <3> and ending with <4> | ||
CDA -> Client: time series ids | ||
else thread 3 | ||
Client -> ReverseProxy: /catalog/timeseries?office=SWT&tsid_start=<5>&tsid_end=<6> | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: no | ||
ReverseProxy -> CDA: /catalog/timeseries?office=SWT&tsid_start=<5>&tsid_end=<6> | ||
CDA -> Database: query time series for SWT starting with <5> and ending with <6> | ||
CDA -> Client: time series ids | ||
end | ||
else Session 2 | ||
Client -> ReverseProxy: /catalog/timeseries/pages?office=SWT | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: yes | ||
ReverseProxy -> Client: \n \ | ||
/catalog/timeseries?office=SWT&tsid_start=<1>&tsid_end=<2>\n \ | ||
/catalog/timeseries?office=SWT&tsid_start=<3>&tsid_end=<4>\n \ | ||
/catalog/timeseries?office=SWT&tsid_start=<5>&tsid_end=<6>\n | ||
par thread 1 | ||
Client -> ReverseProxy: /catalog/timeseries?office=SWT&tsid_start=<1>&tsid_end=<2> | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: yes | ||
ReverseProxy -> Client: time series ids | ||
else thread 2 | ||
Client -> ReverseProxy: /catalog/timeseries?office=SWT&tsid_start=<3>&tsid_end=<4> | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: yes | ||
ReverseProxy -> Client: time series ids | ||
else thread 3 | ||
Client -> ReverseProxy: /catalog/timeseries?office=SWT&tsid_start=<5>&tsid_end=<6> | ||
ReverseProxy -> CDA: cache current? | ||
CDA -> ReverseProxy: yes | ||
ReverseProxy -> Client: time series ids | ||
end | ||
end | ||
@enduml |