Skip to content

Instantly share code, notes, and snippets.

@datiti
Created February 15, 2018 11:09
Show Gist options
  • Save datiti/247e0f19bc52abd788654d2e5532bf1d to your computer and use it in GitHub Desktop.
Save datiti/247e0f19bc52abd788654d2e5532bf1d to your computer and use it in GitHub Desktop.
Graphviz dot examples
digraph {
//rankdir=LR
node[fontname=Roboto, style=rounded, shape=box]
edge[fontname=Roboto]
api_gateway [label=<api gateway<br/><font point-size="10">port:123</font>>]
config [label=<config<br/><font point-size="10">port:456</font>>]
discovery [label=<discovery<br/><font point-size="10">port:789</font>>]
hello [label="hello service"]
foo [label="foo service"]
bar [label="bar service"]
api_gateway -> discovery [color=blue]
config -> discovery [label="register",style=dashed]
discovery -> config [label="use",color=blue]
hello -> discovery [style=dashed]
hello -> config [color=blue]
api_gateway -> hello [label="expose",color=green]
foo -> config [color=blue]
foo -> discovery [style=dashed]
api_gateway -> foo [color=green]
bar -> config [color=blue]
bar -> discovery [style=dashed]
api_gateway -> bar [color=green]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment