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

  • Home
  • SEARCH
  • 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 6856623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:54:35+00:00 2026-05-27T01:54:35+00:00

I’m using NServiceBus in a pub/sub application for event notifications on a web application.

  • 0

I’m using NServiceBus in a pub/sub application for event notifications on a web application. Right now, when something happens (like a note is created), a message is created and sent on the bus, and the subscriber picks it up and determines who needs to get an email or SMS notification of the event.

What I want to do is put a delay in the processing stream for some of the events. The purpose of this delay is similar to the old 7-second delay on live TV — it gives the user that fired the event time to undo what they did.

Consider our event of CommentCreated. This event is sent when a new comment is persisted by my service layer. This comment can be marked as private or internal, and it’s not uncommon for a user to create a comment then realize they should have marked it private.

I’d like to accomplish this delay without Sagas because, for one, I’m not savvy on them, for two, they seem to be a bit of an overkill for this simple of a requirement, and for three I don’t want to have to deal with another database server to persist their data. The ghetto option would be to set a timer in my subscriber’s handler and wait a few minutes before processing, but that just feels wrong.

Is it possible to do this within NServiceBus? I know some people will say to create a polling service, but that sort of defeats the purpose of a service bus…

  • 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-27T01:54:36+00:00Added an answer on May 27, 2026 at 1:54 am

    There is no pretty way that I know of, besides sagas – either by using NServiceBus’ own Saga<...>, or by effectively implementing the saga yourself – and using some kind of timeout mechanism, like e.g. NServiceBus’ timeout service.

    I agree with you that fulfilling this requirement can be simple – given that the required infrastructure is in place! If you insist on building this the ghetto way, however, I don’t think satisfying the requirement is simple.

    I.e. when you have NServiceBus set up with a proper timeout service and a way to persist sagas, implementing this will be simple.

    But hacking this up, with timers and whatnot, will just invite all kinds of trouble over, like e.g. timers not firing when IIS recycles your web app, etc.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.