Skip to content

ServerlessBravo/qcloud-plantuml

Repository files navigation

Qcloud Plantuml

Environment Setup

# java18
sdk install java 18.0.1-zulu

# inkscape for converting svg to png
brew tap homebrew/cask
brew install --cask inkscape

Generate sprites from SVGs

./generate.sh

Add missing icons

mkdir -p tmp_icons
## add missing scv icons in 
./single_generation.sh
## ensure umls generated at dist
rm -rf tmp_icons

Example Usage

@startuml

left to right direction

!define QcloudPuml https://raw.githubusercontent.com/ServerlessBravo/qcloud-plantuml/release/v1.1/dist

!includeurl QcloudPuml/QcloudCommon.puml
!includeurl QcloudPuml/Qcloud_ServerlessCloudFunction.puml
!includeurl QcloudPuml/Qcloud_APIGateway.puml
!includeurl QcloudPuml/Qcloud_CloudObjectStorage.puml

actor "Person" as personAlias

Qcloud_ServerlessCloudFunction(EventFunction, "webapp", "Tencent", "Convert data into json format")
Qcloud_APIGateway(APIGateway, "webapp", "Tencent", "Expose http/https protocols")
Qcloud_CloudObjectStorage(COS, "webapp", "Tencent", "Save users data as json")


personAlias --> APIGateway
APIGateway -->  EventFunction: Trigger Function as user requests
EventFunction -->  COS: Save data into cos

@enduml

架构图:

webapp

Example with EventBridge

@startuml

left to right direction

!define QcloudPuml https://raw.githubusercontent.com/ServerlessBravo/qcloud-plantuml/release/v1.1/dist

!includeurl QcloudPuml/QcloudCommon.puml
!includeurl QcloudPuml/Qcloud_APIGateway.puml
!includeurl QcloudPuml/Qcloud_EventBridge.puml
!includeurl QcloudPuml/Qcloud_ServerlessCloudFunction.puml

actor "Person" as personAlias

Qcloud_ServerlessCloudFunction(SCF, "app=streaming", "Tencent", "Customized ETL logic")
Qcloud_APIGateway(APIGateway, "app=streaming", "Tencent", "Expose http/https protocols")
Qcloud_EventBridge(EventBridge, "app=streaming", "Tencent", "Event Routing and Event Filtering")


personAlias --> APIGateway: Trigger by url
APIGateway --> EventBridge: Ingest data into EventBridge
EventBridge --> SCF: Trigger SCF Function to process

@enduml

架构图:

webapp

Reference

About

Icons of Qcloud for Plantuml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages