Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7064453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:50:11+00:00 2026-05-28T04:50:11+00:00

Using NServiceBus with the NHibernate saga persister, how can I avoid duplicate sagas when

  • 0

Using NServiceBus with the NHibernate saga persister, how can I avoid duplicate sagas when it’s possible for a message to be received more than once?

Here are some solutions that I’ve thought of so far:

  1. Never call MarkAsComplete() so the deduplication is handled in the usual fashion by the saga itself.

  2. Implement my own saga persister which stores the correlation ids for completed sagas so duplicate/additional messages are ignored.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:50:11+00:00Added an answer on May 28, 2026 at 4:50 am

    The question is what would cause the message to be received multiple times – is it due to retries of the same message (like in the case where there was a deadlock in the DB)? Those kinds of retries (causing the same message to be “processed” multiple times) are already handled by the transactional nature of NServiceBus.

    If the situation is due to the message being sent by some other endpoint multiple times, the recommendation would be to see what you could do to prevent that on the sending side. If that isn’t possible, then yes, a saga that doesn’t ever complete could serve as your filter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I subscribe as the recipient of a certain type of message using NServiceBus
I am using nservicebus to handle commands. During a handler i use nhibernate to
I have an experimental NServiceBus project running which has: MyProject.Core - message publisher using
I am using NServiceBus with Distributed Transactions. Normally this works fantastic. Either my message
I am trying to use NServiceBus with an ASP.NET MVC 2 website (using VS
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button
I have an application using NServiceBus to process messages, and while debugging I'm finding
My team is on our first attempt at using NServiceBus (v2.0), using MSMQ as
What do people do with security issues when using nServiceBus/msmq? Thinking about for example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.