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.

