From fb1cf7b2408fba26eba1986a2bc16985a5d19637 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 3 Mar 2024 02:08:37 -0800 Subject: [PATCH] Draw a General Purpose Diagram --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 479bfd52d..1f8e83f6c 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,24 @@ bazel test //... ` This causes Bazel to run the commands through an all-in-one `CAS`, `scheduler` and `worker`. +## How it Works + +This diagram is a high-level overview of the data flow in the NativeLink system. It refers to NativeLink concepts like Scheduler pool, Worker pool, and CAS rather than the cloud concepts like functions, compute nodes, and object storage to which they correspond. + +```mermaid +sequenceDiagram + participant build server (client) + participant scheduler pool + participant worker pool + participant cas + build server (client)->>scheduler pool: queue jobs + scheduler pool->>worker pool: route jobs + worker pool->>cas: upload artifacts + worker pool->>scheduler pool: result download instructions + scheduler pool->>build server (client): result download instructions + cas->>build server (client): service queries + build server (client)->>cas: service queries +``` ## ❄️ Installing with Nix **Installation requirements:**