Skip to content
Graphviz (DOT) templates

AWS EventBridge Hub-Spoke

Central event bus routing domain events to multiple consumers.

Template previewGraphviz (DOT)
eb P1 Order svc EB EventBridge bus (custom) P1->EB P2 Payment svc P2->EB P3 Inventory svc P3->EB R1 Rule: order.created → email lambda EB->R1 R2 Rule: payment.captured → analytics firehose EB->R2 R3 Rule: *.failed → DLQ + page EB->R3 C1 Lambda: email R1->C1 C2 Firehose → S3 R2->C2 C3 SQS DLQ + SNS R3->C3

What this template contains

Graph
Directed
Edges
9
Source
19 lines

Make it your own.

digraph eb {
  rankdir=LR;
  graph [bgcolor=transparent];
  node [shape=box, style="rounded,filled", fontname=Inter, fontsize=10];

  P1 [label="Order svc", fillcolor="#dbeafe"];
  P2 [label="Payment svc", fillcolor="#dbeafe"];
  P3 [label="Inventory svc", fillcolor="#dbeafe"];
  EB [label="EventBridge bus\n(custom)", fillcolor="#fef3c7"];
  R1 [label="Rule: order.created\n→ email lambda", fillcolor="#ede9fe"];
  R2 [label="Rule: payment.captured\n→ analytics firehose", fillcolor="#ede9fe"];
  R3 [label="Rule: *.failed\n→ DLQ + page", fillcolor="#fee2e2"];
  C1 [label="Lambda: email", fillcolor="#dcfce7"];
  C2 [label="Firehose → S3", fillcolor="#dcfce7"];
  C3 [label="SQS DLQ + SNS", fillcolor="#dcfce7"];

  P1 -> EB; P2 -> EB; P3 -> EB;
  EB -> R1 -> C1;
  EB -> R2 -> C2;
  EB -> R3 -> C3;
}