Skip to content

Commit

Permalink
add: graphviz design doc (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbdchd authored and kodiakhq[bot] committed Jun 25, 2019
1 parent 4cedf9d commit 9b81929
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 0 deletions.
24 changes: 24 additions & 0 deletions assets/design.dot
@@ -0,0 +1,24 @@
digraph Kodiak {

"GitHub"[shape=doublecircle]

"GitHub" -> "HTTP Webhook"[label="HTTP events", weight=0]


subgraph cluster_kodiak {
label = "Kodiak"

"HTTP Webhook" -> Redis[label="write event to queue", weight=0]
Redis[shape=cylinder]

"Repo Queue Worker" -> Redis [label="pull off mergeable\n PRs and merge"]
"Repo Queue Worker" -> "GitHub"
"Async Worker" -> "GitHub"

"Async Worker" -> Redis[label="write any mergeable PRs\nto per repo queue"]

"Event Queue Worker" -> Redis[label="Left blocking pop \nfrom event queue"]
"Event Queue Worker" -> "Async Worker"[style="dashed", label="create async task \nfor each event"]
}

}
114 changes: 114 additions & 0 deletions assets/design.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9b81929

Please sign in to comment.