summaryrefslogtreecommitdiff
path: root/src/deadlinks/architecture.mermaid
blob: bacf7c056d2ff5d942c2c63de28757641902bfad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
flowchart LR
    subgraph DeadLinks
        URLs["`[]URL{
        - URLString
        - LastChecked
        - Status
        - DestURLs
        - Pinned
        }`"]
        style URLs text-align:left

        Cleaner -->|"periodically delete where\nnot linked to and not pinned"| URLs

        CheckerWorker -->|getNext| Queue
        Queue -->|iterate over stale| URLs
        CheckerWorker -->|upsert| URLs
    end

    User -->|upsert pinned| URLs
    User -->|notify pinned| Queue
    User -->|query by state| URLs