Skip to content

Commit

Permalink
structure of the crdt storage
Browse files Browse the repository at this point in the history
  • Loading branch information
d-led committed Jun 16, 2024
1 parent 160787d commit 3b0ddd7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,22 @@ Scale replicas for further experiments, e.g.:
```shell
docker compose scale mermaidlive=5
```

copying the replica file to the local filesystem reveals the structure of the G-Counter:

```shell
docker compose cp mermaidlive:/appdata/my.gcounter .
```

↓

```json
{
"peers": {
"3d226c43af66": 7,
"c2206af9aba2": 9
}
}
```

which results in the observable counter value of `16`.

0 comments on commit 3b0ddd7

Please sign in to comment.