Vulthil.Messaging.Inbox
1.0.0
dotnet add package Vulthil.Messaging.Inbox --version 1.0.0
NuGet\Install-Package Vulthil.Messaging.Inbox -Version 1.0.0
<PackageReference Include="Vulthil.Messaging.Inbox" Version="1.0.0" />
<PackageVersion Include="Vulthil.Messaging.Inbox" Version="1.0.0" />
<PackageReference Include="Vulthil.Messaging.Inbox" />
paket add Vulthil.Messaging.Inbox --version 1.0.0
#r "nuget: Vulthil.Messaging.Inbox, 1.0.0"
#:package Vulthil.Messaging.Inbox@1.0.0
#addin nuget:?package=Vulthil.Messaging.Inbox&version=1.0.0
#tool nuget:?package=Vulthil.Messaging.Inbox&version=1.0.0
Vulthil.Messaging.Inbox
Idempotent-receiver (inbox) consume filter for Vulthil.Messaging. Broker delivery is at-least-once; this package deduplicates redeliveries by recording which messages have been handled and skipping the ones already seen. With a transactional store the marker commits in the same transaction as the consumer's business writes, giving exactly-once processing; without one (e.g. Cosmos) the guarantee is effectively-once — see Guarantees below.
This package is persistence-agnostic: it defines the IIdempotencyStore contract and the consume filter. Provide
a store via Vulthil.Messaging.Inbox.Relational (relational reference implementation) or your own.
Usage
Opt a message type into idempotent processing:
builder.AddMessaging(messaging =>
{
messaging.UseRabbitMq(/* ... */);
messaging.ConfigureQueue("orders", queue => queue.AddConsumer<OrderPlacedConsumer>());
// Guard OrderPlaced deliveries; dedupes on MessageId by default.
messaging.AddIdempotentInbox<OrderPlaced>();
// Or key off a stable business field:
messaging.AddIdempotentInbox<OrderPlaced>(ctx => ctx.Message.OrderId.ToString());
});
Deliveries with no resolvable key throw MissingIdempotencyKeyException by default. To process them without
deduplication instead, set it on the store registration: services.AddRelationalInbox<AppDbContext>(o => o.RejectMessagesWithoutKey = false).
Guarantees
- Relational store: transactional exactly-once — the marker and the consumer's writes commit together.
- Cosmos / non-transactional stores: effectively-once (best-effort dedup over idempotent writes); see the documentation for details.
Scope
This package only deduplicates. Bounding a persistently-failing consumer is the transport's job: on RabbitMQ
a poison delivery is retried up to the queue's MaxRetryCount, then a Fault<T> is published and the message is
nacked to the dead-letter exchange — the guard ignores RetryCount and adds no max-attempts of its own. It also
serializes only the marker insert, so two duplicates processed concurrently can each run the consumer body
once. Keep side effects idempotent if concurrent duplicate delivery is possible.
See the inbox pattern documentation for the full design and the message-id stability contract.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.9)
- OpenTelemetry.Api (>= 1.16.0)
- SonarAnalyzer.CSharp (>= 10.27.0.140913)
- Vulthil.Messaging (>= 1.0.0)
-
net9.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.9)
- OpenTelemetry.Api (>= 1.16.0)
- SonarAnalyzer.CSharp (>= 10.27.0.140913)
- Vulthil.Messaging (>= 1.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Vulthil.Messaging.Inbox:
| Package | Downloads |
|---|---|
|
Vulthil.Messaging.Inbox.Cosmos
Azure Cosmos DB idempotency store for Vulthil.Messaging.Inbox — effectively-once message processing (best-effort deduplication layered over idempotent-by-design writes). Cosmos has no cross-partition transaction, so it cannot offer the transactional exactly-once the relational store does. |
|
|
Vulthil.Messaging.Inbox.Relational
Relational Entity Framework Core idempotency store for Vulthil.Messaging.Inbox — transactional exactly-once message processing where the inbox marker and the consumer's writes commit in one transaction. Works with any relational EF Core provider (PostgreSQL, SQL Server, MySQL, SQLite); Cosmos requires a separate store. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 0 | 6/21/2026 |