From 500e0dd8304ca41d8d9b4c72872fa85a6513fa74 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sun, 27 Oct 2024 00:50:26 +0200 Subject: [PATCH] create architecture diagram with D2 --- architecture.d2 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 architecture.d2 diff --git a/architecture.d2 b/architecture.d2 new file mode 100644 index 0000000..7b36327 --- /dev/null +++ b/architecture.d2 @@ -0,0 +1,27 @@ +browser -> backend.server: REST API + +GitHub: { + shape: cloud + icon: https://icons.terrastruct.com/dev%2Fgithub.svg +} + +GitHub -> backend.server: webhook events + +backend.server <-> backend.storage.Postgres: read/write data +backend.server <-> backend.storage.Redis: store KV data +backend.server <-> backend.storage.Influx: read data + +backend.storage.Postgres.shape: cylinder +backend.storage.Redis.shape: cylinder +backend.storage.Influx.shape: cylinder + +backend.gh-updater -- backend.storage.Postgres: listen to build status changes +backend.gh-updater -> GitHub: write check status + +backend.executors.executor 1 -> backend.storage.Postgres: build status data +backend.executors.executor 2 -> backend.storage.Postgres: build status data +backend.executors.executor n -> backend.storage.Postgres: build status data + +backend.executors.executor 1 -> backend.storage.Influx: build logs +backend.executors.executor 2 -> backend.storage.Influx: build logs +backend.executors.executor n -> backend.storage.Influx: build logs