Skip to content

Concurrent buffer appends are serialized, and never fatal

Two branches appending at once would each read the buffer before the other's turn and write back a version missing it. Serializing the read-modify-write prevents that, but losing a turn is worse than a rare interleave.

The rule

Normative: this is the rule
  1. The read-modify-write of a conversation buffer MUST be serialized per storage scope (scope, scope identifier and key together), so concurrent appends queue instead of overwriting one another.
  2. The wait MUST be bounded.
  3. An append that still cannot take its turn MUST proceed unserialized and MUST NOT fail or discard the turn, and it emits a warning.
  4. Serialization taken MUST always be released.
  5. Nothing more is claimed: not storage-level atomicity, and no protection against a writer that does not go through this path.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · MEM-12 · changed in spec 1.0