fix: remove backwards compatibility section

This commit is contained in:
Igor Sirotin 2026-04-30 15:10:20 +01:00
parent e9a257f623
commit bf20d6460c
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A

View File

@ -13,7 +13,6 @@ Applications partition the payload into multiple transport messages and reconstr
even when segments arrive out of order or up to a **predefined percentage** of segments are lost. even when segments arrive out of order or up to a **predefined percentage** of segments are lost.
The protocol optionally uses **ReedSolomon** erasure coding for fault tolerance. The protocol optionally uses **ReedSolomon** erasure coding for fault tolerance.
All messages are wrapped in a `SegmentMessageProto`, including those that fit in a single segment. All messages are wrapped in a `SegmentMessageProto`, including those that fit in a single segment.
Implementations **MAY** opt into a [backwards-compatible mode](#backwards-compatibility) that exempts small payloads from wrapping.
## Motivation ## Motivation
@ -99,7 +98,7 @@ To transmit a payload, the sender:
- Send each segment as an individual transport message according to the underlying transport protocol, - Send each segment as an individual transport message according to the underlying transport protocol,
preserving application-level metadata (e.g., content topic). preserving application-level metadata (e.g., content topic).
This yields a deterministic wire format: every transmitted payload is a `SegmentMessageProto`. Implementations introducing segmentation into a deployment with peers that predate this specification **MAY** instead operate in [backwards-compatible mode](#backwards-compatibility). This yields a deterministic wire format: every transmitted payload is a `SegmentMessageProto`.
### Receiving ### Receiving
@ -119,25 +118,6 @@ Upon receiving a segmented message, the receiver:
--- ---
## Backwards Compatibility
Implementations **MAY** support a **backwards-compatible mode**, intended for deployments where this specification is being introduced incrementally and some peers do not yet implement segmentation.
The mode is controlled by the `backwardsCompatible` configuration option, which defaults to `false`.
When `backwardsCompatible = true`, the [Sending](#sending) procedure is amended as follows:
- Payloads with size **`segmentSize`** **SHALL** be transmitted unmodified, i.e., not wrapped in `SegmentMessageProto`.
- Payloads exceeding `segmentSize` are wrapped and sent unchanged from [Sending](#sending).
A receiver that interoperates with senders operating in this mode **MUST** accept both wrapped and unwrapped payloads on the same channel.
A payload that does not parse as a valid `SegmentMessageProto` is treated as an unsegmented original payload and delivered directly to the application.
**Trade-off.**
This mode preserves on-the-wire compatibility with peers that cannot decode `SegmentMessageProto`, at the cost of the deterministic wire format described in [Sending](#sending).
Once all peers in a deployment implement this specification, `backwardsCompatible` **SHOULD** be set to `false`.
---
## Implementation Suggestions ## Implementation Suggestions
### ReedSolomon ### ReedSolomon