Skip to content

Commit

Permalink
PERA-1348 :: Add in Polling Diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltchuang committed Dec 28, 2024
1 parent f6d56f6 commit 5f0943f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Polling

<img src="mermaid/polling.png" width="300">


```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
```
Binary file added mermaid/polling.png
Loading
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 5f0943f

Please sign in to comment.