Chatter.MessageBrokers.Reliability.Cosmos
0.4.1
See the version list below for details.
dotnet add package Chatter.MessageBrokers.Reliability.Cosmos --version 0.4.1
NuGet\Install-Package Chatter.MessageBrokers.Reliability.Cosmos -Version 0.4.1
<PackageReference Include="Chatter.MessageBrokers.Reliability.Cosmos" Version="0.4.1" />
<PackageVersion Include="Chatter.MessageBrokers.Reliability.Cosmos" Version="0.4.1" />
<PackageReference Include="Chatter.MessageBrokers.Reliability.Cosmos" />
paket add Chatter.MessageBrokers.Reliability.Cosmos --version 0.4.1
#r "nuget: Chatter.MessageBrokers.Reliability.Cosmos, 0.4.1"
#:package Chatter.MessageBrokers.Reliability.Cosmos@0.4.1
#addin nuget:?package=Chatter.MessageBrokers.Reliability.Cosmos&version=0.4.1
#tool nuget:?package=Chatter.MessageBrokers.Reliability.Cosmos&version=0.4.1
Document-tier (Azure Cosmos DB) reliability provider for Chatter.MessageBrokers: the DI surface, document-tier reliability surface (atomic-write handle over TransactionalBatch), partition-key resolver, and the outermost batch-lifecycle behavior. Outbox enqueue, inbox dedup (co-resident inbox-marker with marker-409 confirmed-duplicate handling), and the change-feed outbox relay are implemented; Chatter exclusively owns the reserved inbox:/outbox: item-id namespace on the public staging surface. The relay drains _chatterType=outbox/status=pending documents (one ChangeFeedProcessor per distinct database/container/lease), publishes each through the broker, then marks delivered and stamps a TTL; it is at-least-once (downstream consumers dedup via the inbox marker) and requires the container to have defaultTtl enabled for post-delivery purge. AddCosmosOutboxRelay registers a standalone relay as its own IHostedService, independent of the command pipeline, for applications that drain a container without participating in AddChatterCqrs/WithCosmosDocumentReliability. IOutboxBodyResolver provides a drain-time body-resolution seam: the relay invokes the bound resolver per pending document so the brokered-message body can be sourced from current store state rather than reconstructed verbatim from the persisted outbox document. WithCosmosInbox registers a standalone, lease-less Cosmos inbox-dedup gate (CosmosBrokeredMessageInbox) through the existing InboxBehavior seam for stateless consumers with no aggregate, outbox, or lease container: it performs an anti-TOCTOU two-phase write-ahead claim (CreateItemStream a pending CosmosInboxMarker before the handler, PatchItemStream it to completed after), so a redelivery confirms a duplicate on completion rather than mere existence, resolves a create-409 by point-reading the conflicting marker three ways (a completed marker skips the handler, a pending or abandoned marker is taken over and re-run, an unconfirmable conflict redelivers), fails loud on a missing message id, and on handler failure rethrows the original exception and leaves the pending marker for the take-over path to adopt and re-run rather than deleting it, so marker state is monotonic (absent to pending to completed, with a MarkerTimeToLive purge the only removal). This gate deduplicates redeliveries only, not concurrent delivery: two concurrent deliveries of the same message id both run the handler, so handlers behind this inbox must be idempotent and safe under concurrent execution of the same id; mutual exclusion for concurrent delivery is the transport's responsibility (for example, an Azure Service Bus session, which serializes only same-id deliveries sharing one SessionId/GroupId on a session-enabled receiver).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Chatter.MessageBrokers (>= 0.14.1)
- Microsoft.Azure.Cosmos (>= 3.61.0)
-
net8.0
- Chatter.MessageBrokers (>= 0.14.1)
- Microsoft.Azure.Cosmos (>= 3.61.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.