Cohesive Systems logoCOHESIVE SYSTEMS

Search Cohesive Systems

Ready

Search Cohesive Systems

Find product pages, building blocks, technical articles, and graph definitions.

Retention, Expiration, and Quarantine

Retention, expiration, and quarantine describe how long interaction material remains available, when it ceases to be admissible for ordinary processing, and how exceptional material is isolated for inspection, repair, replay, reconciliation, or disposal.

Durability and retention are distinct. Durability states which failures recorded material survives. Retention states how long or under what policy it remains available. Expiration states when a message, request, claim, lease, reply obligation, or other item becomes stale for a declared purpose. An expired item may remain durably stored for audit while no longer being admissible for live processing.

Channel Retention Forms

Channel declarations should distinguish several retention forms:

  • activation-local material exists only for the current activation, connection, or session;
  • durable-until-settled material survives interruption until its declared completion or provider settlement;
  • retained history preserves an ordered or restorable history inside a bounded retention window; and
  • retained latest preserves only the latest publication for a semantic key.

These forms are not interchangeable. Durable-until-settled delivery can preserve pending work without offering historical replay to a new consumer. Retained history can permit replay without tracking whether one application applied each item. Retained latest supports state refresh but normally forgets intermediate changes.

Replay is an operation over retained material, not another name for retention or durable progress. A replay cursor selects input; application progress records what a consumer durably accounted for. Session resume can preserve bounded protocol continuity without offering either retained history or application replay.

Quarantine

An invalid-message or dead-letter channel is a quarantine path, not a business completion state. It may contain malformed, incompatible, unauthorized, undeliverable, expired, poison, repeatedly failing, or operationally ambiguous material. Quarantine should record the attempted contract, failure boundary, reason, attempt history, prior acknowledgments or effects, and the policy that moved the item.

A viable quarantine path requires:

  • Ownership and alerting.
  • Access control, classification, and retention policy.
  • Inspection, correction, replay, skip, reconciliation, or terminal-disposition procedures.
  • Idempotency and effect checks before redrive.
  • Ordering and gap rules for work removed from an ordered lane.
  • Evidence that purge or expiry does not silently erase an outstanding semantic obligation.

Subscription and Recovery Horizons

A durable subscriber requires subscription identity and retained material or another authoritative recovery source. Retention must cover the outage, detection, repair, and catch-up horizon, or the system must declare how snapshots, event histories, backfills, or reconciliation fill the gap.

Channel purging is an authorized operational action. It changes the available history and may invalidate pending work, test isolation, replay, or recovery claims. The target scope, cutoff, authority, audit record, and recoverability must be explicit.

Formal relations

  • qualifies: Messages and Envelopes — States how long interaction material remains available, when it expires, and how suspect or unprocessable material is isolated and recovered.

External References

Related concepts: enterprise integration patterns, time, durability, persistence, delivery semantics, delivery progress and settlement, interaction channels, interaction protocols, consumer coordination, acknowledgments, retry, recovery, idempotency, ordering, operational control, observability and provenance, network channels, asynchronous interaction design.