The Inbox pattern is the consumer-side counterpart to the Outbox pattern, solving the duplicate message processing problem that arises from at-least-once broker delivery. The implementation uses a PostgreSQL inbox_messages table with ON CONFLICT DO NOTHING for idempotent inserts, a generic MassTransit IConsumer that writes

7m read timeFrom milanjovanovic.tech
Post cover image
Table of contents
Why You Need an InboxInbox Database SchemaInbox ConsumerInbox ProcessorThings to Watch Out ForInbox vs. Idempotent ConsumerSummary

Sort: