-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plantuml diagram and rewrite README parts, add Credits part (#9)
* Add puml diagram to md * Some tests * Remove md and switch to puml to svg generator * Improve doc * Update README and plantUML schema
- Loading branch information
Showing
5 changed files
with
139 additions
and
17 deletions.
There are no files selected for viewing
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
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
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,6 @@ | ||
#!/bin/sh | ||
|
||
for FILE in *.puml; do | ||
cat $FILE | docker run --rm -i think/plantuml > "${FILE%.puml}.svg" | ||
done | ||
echo Done |
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,42 @@ | ||
@startuml | ||
actor User | ||
actor System | ||
activate System | ||
participant Souin | ||
collections Providers | ||
participant Memory | ||
participant Redis | ||
participant ReverseProxy | ||
System -> ReverseProxy ++ : run() | ||
System -> Souin ++ : main() | ||
Souin -> Providers : Init() | ||
activate Providers | ||
Providers -> Memory ++ : MemoryConnectionFactory() | ||
Providers <-- Memory : *AbstractProvider | ||
Providers -> Redis ++ : RedisConnectionFactory() | ||
Providers <-- Redis : *AbstractProvider | ||
Souin <-- Providers : AbstractProvider[] | ||
... Waiting for user request ... | ||
loop User requests | ||
User -> Souin : request | ||
activate User | ||
par Request providers content | ||
Souin -> Memory: GetRequestInCache() | ||
else | ||
Souin -> Redis: GetRequestInCache() | ||
else | ||
Souin -> ReverseProxy: GetRequestInReverseProxy() | ||
end | ||
par Response providers content | ||
Souin <-- Memory: *Response | ||
else | ||
Souin <-- Redis: *Response | ||
else | ||
Souin <-- ReverseProxy: *Response | ||
Souin -> Memory: SetRequestInCache() | ||
Souin -> Redis: SetRequestInCache() | ||
end | ||
Souin -> User : response | ||
deactivate User | ||
end | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.