https://github.com/d-led/percounter
amateur-ish distributed persistent g-counter
https://github.com/d-led/percounter
crdt crdts g-counter gcounter
Last synced: about 1 year ago
JSON representation
amateur-ish distributed persistent g-counter
- Host: GitHub
- URL: https://github.com/d-led/percounter
- Owner: d-led
- License: mpl-2.0
- Created: 2024-06-14T22:16:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T16:33:34.000Z (almost 2 years ago)
- Last Synced: 2025-02-15T23:44:24.742Z (over 1 year ago)
- Topics: crdt, crdts, g-counter, gcounter
- Language: Go
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# percounter
> an amateur-ish persistent distributed [G-Counter (grow-only counter)](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type#G-Counter_(Grow-only_Counter))
see tests for usage:
- [synchronous](gcounter_test.go)
- [async in-process](async_gcounter_test.go)
- [async in-process, persistent](async_gcounter_test.go)
- [async distributed (ZeroMQ via tcp), persistent](zmq_single_gcounter_test.go)
initially created to be used in [mermaidlive](https://github.com/d-led/mermaidlive)