Last active
August 23, 2016 17:00
-
-
Save korczis/7748458 to your computer and use it in GitHub Desktop.
Architecture in Graphviz
This file contains hidden or 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
| // dot.exe -T svg -o architecture.svg architecture.dot | |
| digraph architecture { | |
| // Render chart with left to right layout | |
| rankdir="LR"; | |
| // AMQP communication node | |
| amqp [label="AMQP",shape=box,fillcolor="burlywood",style="filled"]; | |
| // Clients | |
| c0 [label="Client",shape=box,fillcolor="burlywood",style="filled"]; | |
| c1 [label="Client",shape=box,fillcolor="burlywood",style="filled"]; | |
| // Database | |
| db [label="Database",shape=box,fillcolor="burlywood",style="filled"]; | |
| // Load balancer | |
| lb [label="Load Balancer",shape=box,fillcolor="burlywood",style="filled"]; | |
| // Servers | |
| s0 [label="Server",shape=box,fillcolor="burlywood",style="filled"]; | |
| s1 [label="Server",shape=box,fillcolor="burlywood",style="filled"]; | |
| // Clients talks to Load Balancer | |
| c0 -> lb [dir=both]; | |
| c1 -> lb [dir=both]; | |
| // Load Balancer talks to servers | |
| lb -> s0 [dir=both]; | |
| lb -> s1 [dir=both]; | |
| // Servers are connected to AMQP | |
| s0 -> amqp [dir=both]; | |
| s1 -> amqp [dir=both]; | |
| // Servers are connected to Database | |
| s0 -> db [dir=both]; | |
| s1 -> db [dir=both]; | |
| } |
Author
korczis
commented
Dec 2, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment