Skip to content

Instantly share code, notes, and snippets.

@voduytuan
Last active January 24, 2024 08:27
Show Gist options
  • Save voduytuan/5b8af407ee2d5c58343ae8b8ab33d6ab to your computer and use it in GitHub Desktop.
Save voduytuan/5b8af407ee2d5c58343ae8b8ab33d6ab to your computer and use it in GitHub Desktop.
mermaidjs example

Example MermaidJs diagram

graph TD;
subgraph I [Public Internet]
IA[Webapp - app.domain];
IB[Public Website - www.domain];
IC[Restful API - api.domain];
ID[Identity Provider - id.domain];
end
subgraph SV01 [Service 01]
SV01A[Restful API 01];
SV01B[(DB 01)];
SV01A --> SV01B;
end
subgraph SV02 [Service 02]
SV02A[Restful API 02];
SV02B[(DB 02)];
SV02A --> SV02B;
end
subgraph SV0N [Service ..]
SV0NA[Restful API ..];
SV0NB[(DB ..)];
SV0NA --> SV0NB;
end
subgraph SYS [Internal Backbone Services]
SREDIS[Redis];
SRABBIT[Rabbit MQ];
SSOCKET[Web Socket];
SES[Elasticsearch];
end
CF[[Cloudflare Proxy - WAF]];
TRAEFIK(((Traefik)));
I --> CF;
CF --> TRAEFIK;
TRAEFIK --> SV01;
TRAEFIK --> SV02;
TRAEFIK --> SV0N;
SV01 -.-> SYS;
SV02 -.-> SYS;
SV0N -.-> SYS;
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment