Skip to main content
A GCounter is a grow-only counter. Each client tracks its own count; the total is the sum across all clients. Concurrent increments never conflict.

Usage

API

How it works

Each client maintains its own counter. The total is the sum of all per-client counters. On merge, each per-client counter takes the max of both sides — increments always win, decrements are impossible.