Expand description
Ephemeral (non-persisted) messaging for Subduction.
Provides authenticated, fire-and-forget messaging scoped to
Topic identifiers. Primary use cases: cursor positions,
selections, presence-in-document, typing indicators, and other
transient application-level signals.
§Design
See design/ephemeral.md in the repository root for the
protocol-level design: subscription model, dedup behaviour,
bounce-back amplification mitigation, cross-edge fast-path
rationale, threat model, and wire format.
§Architecture
subduction_core subduction_ephemeral
┌──────────────────────┐ ┌────────────────────────┐
│ Connection<K, M> │ │ EphemeralMessage │
│ Handler<K, C> │◄───────────│ EphemeralHandler │
│ SyncMessage │ │ EphemeralPolicy │
│ SyncHandler │ └────────────────────────┘
└──────────────────────┘The core crate knows nothing about ephemeral behavior. This crate
defines its own message type (EphemeralMessage), policy trait
(EphemeralPolicy), and handler (EphemeralHandler).
Wire multiplexing (combining sync, ephemeral, and keyhive messages
into a single envelope type) is the application’s responsibility.
See subduction_wasm for an example WireMessage enum.
Modules§
- clock
- Wall-clock time source for time-bucketed nonce eviction.
- composed
- Composed handler that dispatches a wire envelope to sub-handlers.
- config
- Configuration and event types for the ephemeral system.
- handler
- Ephemeral message handler.
- message
- Ephemeral message types and wire encoding.
- nonce_
cache - Time-bucketed nonce deduplication cache.
- payload_
header - Pre-verify header view of an
EphemeralPayload. - policy
- Authorization policy for ephemeral messaging.
- topic
- Ephemeral pubsub topic identifier.