Order auction bids at an authoritative acceptance boundary, and preserve that decision when delivering updates to the video room. The deciding constraint is fan-out: a viewer's message arrival order cannot establish an auction-wide order, because each viewer observes a separate delivery path.

TL;DR: Use a server timestamp to record when the authority accepted a bid, with a persisted sequence to resolve its position; use message arrival to diagnose delivery. Neither timestamp ordering nor a sequence makes network access equally fast. Publish the acceptance rule before bidding starts, and recover missing decisions before presenting a room as current.

For developer tools that spin up video rooms with scoped tokens, the operational question is whether a participant sees the same accepted history after reconnecting. A successful room join answers a different question. Keep the auction decision, room authorization, and delivery cursor distinct enough that an incident responder can tell which boundary failed.

What page fired when two viewers disagree?

Start the incident review with the disputed decision and the page that brought someone to it. A dashboard showing connected viewers doesn't establish that those viewers received the same bid history, and a low average delivery delay doesn't establish that the final accepted bid reached the bidder who needs to see it. Ask for the auction identifier, accepted sequence, recipient cursor, and the point at which the interface declared itself current. Those are proposed operational records, not evidence that any particular platform already collects them.

Check the ledger.

Consider a deliberately constructed drill: auction tooling-demo, room review-room, and accepted decisions 41 and 42. One subscriber receives 42 first, another receives 41 first, and a reconnecting subscriber receives 41 twice. These are test inputs, not an incident report or a benchmark. The acceptance result should remain identical across all three runs; only their delivery and recovery traces should differ. If a winner changes when the same decisions are delivered in another order, the receiving interface has become an accidental adjudicator.

There is a second, quieter failure to test. A viewer receives 41 and then hears nothing while 42 is accepted elsewhere. No out-of-order message arrives to expose the gap. A contiguous local cursor therefore proves only that the locally observed prefix has no holes; it needs comparison with an authoritative high-water mark before it can support a claim of freshness. Choose how often to make that comparison from the auction's permitted staleness, rather than inventing an interval that sounds reassuring.

Should a server timestamp or message arrival order decide bids?

Server timestamp versus message arrival is partly a question about where the word “arrival” applies. Arrival at the authoritative acceptance boundary can be the published policy. Arrival at an individual subscriber is a delivery observation. Treating those as interchangeable makes the fairness rule depend on which screen happens to be inspected during the postmortem.

For this design, define acceptance as a successful durable decision for one auction, and assign its timestamp and next sequence within that decision. The sequence is the authoritative order; the server timestamp explains when acceptance occurred. This deliberately avoids asking a timestamp alone to settle ties or reconcile competing writers. If the business instead requires ordering by an earlier ingress timestamp, it needs a separately specified reconciliation rule, including what happens when an earlier-stamped bid is delayed. That's a different acceptance policy, with a different waiting trade-off.

A timestamp isn't a fairness policy.

The proposed policy favors an auditable result and prompt finality over compensating for every participant's network delay. It does not claim to identify who clicked first, and it should not be described that way. Multiple accepting processes must share a serialization mechanism for the auction, or route decisions through one authority; otherwise, adding a timestamp field merely gives conflicting decisions more convincing labels. At closure, evaluate the deadline at the same authority that accepts bids, and persist the closing decision in the same ordered history. A viewer's late delivery must not reopen that decision.

Retries belong in this policy too. Require a stable bid identifier, bind it to the authenticated actor and auction, and preserve the original result for a retry of the same request. Reject conflicting reuse of that identifier. The intended invariant is one decision for one logical bid, even when its response or notification is delivered more than once. Record rejection reasons separately from the accepted sequence so responders can distinguish a rejected bid from a notification that never arrived.

Keep room scope separate from the recovery cursor

Use the room token to grant a specific actor permission to enter a specific video room for a bounded lifetime. For this application design, verify that grant on the server before joining, subscribing, or replaying room data; derive auction visibility from server-controlled membership rather than a room identifier supplied by the client. A video participation grant should not silently authorize bid submission. These are authorization requirements for the application, not claims about a transport standard's token format.

The WebRTC 1.0 specification describes media and data-channel interfaces, including channel ordering configuration. Even an ordered channel does not define the application's auction acceptance policy or a durable replay contract. Establish those contracts in the application, then evaluate whether the chosen delivery path can carry them. The standards reference belongs in a transport review; the acceptance ledger belongs in the disputed-bid review.

A recovery cursor is narrower still. It names the last decision applied to a projection, and it carries no authority to read that decision. Recheck access before replay, including after a token expires or membership changes. Keeping this distinction explicit costs some integration work, but it prevents “resume from 41” from becoming a substitute for room authorization.

Apply a contiguous prefix before calling the room current

The safe implementation starts upstream: persist each accepted decision together with durable publication intent, and make publication retryable. Otherwise, a process can accept a bid and stop before notifying anyone. The concrete transaction and publisher depend on the storage system; the required behavior is that recovery can discover accepted decisions even if the first publication attempt never happened.

At the receiving boundary, make the next step small enough to review. This Go helper checks a proposed event against one auction cursor. Its identifiers and sequence values are application-defined. It performs no token verification, networking, bid adjudication, or durable write; call it only after the server has authorized access and authenticated the event source.

package projection import "errors" var ErrGap = errors.New("recover missing accepted decisions") var ErrScope = errors.New("event belongs to another auction") var ErrSequence = errors.New("accepted sequence must be positive") type Cursor struct { Auction string Last uint64 } type Event struct { Auction string Sequence uint64 } // CheckNext returns a candidate cursor without changing stored state. func CheckNext(c Cursor, e Event) (Cursor, bool, error) { if c.Auction == "" || e.Auction != c.Auction { return c, false, ErrScope } if e.Sequence == 0 { return c, false, ErrSequence } if e.Sequence <= c.Last { return c, false, nil } // Subtraction is safe because e.Sequence is greater than c.Last. if e.Sequence-c.Last != 1 { return c, false, ErrGap } return Cursor{Auction: c.Auction, Last: e.Sequence}, true, nil } 

When the helper returns a candidate cursor, update the projection and persist that cursor atomically, or serialize equivalent state transitions in the client. Do not persist the cursor first: a crash between those operations would claim that an unapplied decision had been consumed. The helper assumes that each accepted sequence identifies an immutable decision and that old events may be ignored by this projection; it is unsuitable for a consumer whose every delivery triggers an external side effect.

On ErrGap, hold the projection at its existing cursor and request the missing accepted history through an authorized recovery operation. After reaching a known high-water mark, drain buffered events through the same check. Bound that buffer and define snapshot recovery when history is no longer retained; an ever-growing queue is not a recovery strategy. Keep an honest catching-up state visible while recovery proceeds. Video may continue while auction state catches up, provided the interface makes that distinction clear.

Verify the failure path and prepare rollback

Run the constructed 41/42 drill against a fresh projection, then repeat it across disconnects and process restarts. Verify the accepted history as well as the displayed state: duplicate delivery must not advance the cursor, delivery of 42 before 41 must request recovery, and replay followed by live delivery must reach the same projection as an uninterrupted run. Repeat with the last notification suppressed and confirm that high-water comparison detects staleness.

Test authorization independently.

An expired room grant, an actor removed from the room, and a cursor copied from another auction should each fail the relevant authorization or scope check. A passing ordering test cannot compensate for a replay endpoint that exposes another room's history.

Before rollout, decide what page should fire for unresolved cursor lag or failed replay, who owns that response, and which identifiers make the page actionable. Measure acceptance failures separately from delivery recovery failures. The threshold should follow the agreed freshness objective; a notification count on a dashboard is insufficient evidence that viewers are current. Retained history and replay traffic also consume resources, so set retention from the promised recovery window and test what happens beyond it. Avoid promising unlimited recovery by accident.

Deploy changes to the projection behind a reversible configuration, and compare its result with the accepted history before allowing it to drive auction controls. Rollback should restore the previous compatible consumer and replay from a durable cursor or authorized snapshot. Preserve the authoritative ledger. If no compatible consumer can establish current state, suspend new bid acceptance under the published interruption policy until the system can present a trustworthy result; never switch to subscriber arrival order as an emergency fairness rule.

The final postmortem question is concrete: can the team reconstruct the same accepted result from the ledger after changing delivery order, dropping a notification, and reconnecting with valid room scope? That is the delivery guarantee worth defending.

References

  • W3C, WebRTC 1.0: Real-Time Communication Between Browsers. Transport and data-channel interface specification; application acceptance and recovery policies above are proposed design choices. https://www.w3.org/TR/webrtc/