Appends support two mechanisms for concurrency control:Documentation Index
Fetch the complete documentation index at: https://s2.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Match sequence number
Specifying expected current state allows optimistic concurrency control. You can provide the sequence number that you expect S2 to assign to the first record in a batch as thematch_seq_num.
If it does not match, this will result in a 412 Precondition Failed status or corresponding SDK error type.
Fencing tokens
Fencing is a form of pessimistic concurrency control. It is a cooperative mechanism, so an append that does not specify a fencing token will still be allowed. When an append does include afencing_token and it does not match, this results in a 412 Precondition Failed status or corresponding SDK error type.
Setting a fencing token
Set a fencing token via the CLI:See also
SDK
Match sequence number, fencing tokens
API Reference
Concurrency control parameters

