diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md new file mode 100644 index 00000000..8c4d3ea6 --- /dev/null +++ b/ARCHITECTURE.md @@ -0,0 +1,26 @@ +# Polling + + + + +```sh +flowchart TD +subgraph ABC["**Polling**"] +%% Nodes + A("Initialize Polling") + B("Get local account addresses and earliest fetch round") + C("Post this data to backend and wait for response") + D["Is there a change in any of those accounts since earliest fetch round?"] + E("Update account & ASA cache") + F("Wait 3.5 seconds") + +%% Edge connections between nodes + A --> B --> C --> D -- Yes --> E + D -- No --> F + E --> F + F --> B + +%% Node Shapes + D@{shape: diam} +end +``` diff --git a/mermaid/polling.png b/mermaid/polling.png new file mode 100644 index 00000000..bdaffb05 Binary files /dev/null and b/mermaid/polling.png differ