Skip to main content
Set a fencing token for cooperative write exclusion:
s2 fence s2://my-basin/my-stream "writer-1"
Subsequent appends that specify a token will be rejected if it doesn’t match:
s2 append s2://my-basin/my-stream -f "writer-1"