# PlantUML
[chinese Docs](https://plantuml.com/zh/)
```plantuml=
@startuml
actor client
node app
node car
node tshirt
car -> app
app -> client
client -> tshirt
@enduml
```
```plantuml
@startuml
participant Participant as Foo
actor Actor as Foo1
boundary Boundary as Foo2
control Control as Foo3
entity Entity as Foo4
database Database as Foo5
collections Collections as Foo6
queue Queue as Foo7
Foo -> Foo1 : To actor
Foo -> Foo2 : To boundary
Foo -> Foo3 : To control
Foo -> Foo4 : To entity
Foo -> Foo5 : To database
Foo -> Foo6 : To collections
Foo -> Foo7: To queue
@enduml
```
```plantuml
@startuml
' Nền trắng mặc định, không cần set backgroundColor
skinparam sequence {
ArrowColor black
LifeLineBorderColor black
LifeLineBackgroundColor white
ParticipantBorderColor black
ParticipantBackgroundColor white
ActorBorderColor black
ActorBackgroundColor white
NoteBackgroundColor white
NoteBorderColor black
}
actor Player
participant "Game server" as GS
participant "Web app DB" as DB
participant "Polling Job" as Poller
participant SQS
participant Consumer
Player -> GS : play game
GS --> Player : end game
GS -> DB : Save game data (shortly)
Poller -> DB : fetch
DB --> Poller : return
Poller -> SQS : publish
Consumer -> SQS : consume
Consumer -> DB : save game data
DB --> Consumer : stat data
@enduml
```