Vulthil.Messaging.Inbox 1.0.1

dotnet add package Vulthil.Messaging.Inbox --version 1.0.1
                    
NuGet\Install-Package Vulthil.Messaging.Inbox -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vulthil.Messaging.Inbox" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vulthil.Messaging.Inbox" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Vulthil.Messaging.Inbox" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vulthil.Messaging.Inbox --version 1.0.1
                    
#r "nuget: Vulthil.Messaging.Inbox, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vulthil.Messaging.Inbox@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vulthil.Messaging.Inbox&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Vulthil.Messaging.Inbox&version=1.0.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Vulthil.Messaging.Inbox:

Package Downloads
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.

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 0 6/22/2026
1.0.0 50 6/21/2026