USAGE / PICK YOUR STARTING POINT

Use the right tool for the data rule

Start with the tree's lifetime. Then choose how much coordination each operation needs, how a scan should see concurrent writes, and who runs maintenance.

Independent writes

Use the ordinary API when a new value does not depend on the current value.

One-key decisions

Use atomic methods when the current value determines the accepted update.

Related keys

Use a transaction when several keys in one tree must share a commit boundary.

New to ZoneTree?

Run the complete first-tree example before deciding which API your application needs.

Getting started