Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Request Response TTL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Clay Anderson  
View profile  
 More options May 9 2012, 3:25 pm
From: Clay Anderson <supersonicc...@gmail.com>
Date: Wed, 9 May 2012 12:25:05 -0700 (PDT)
Local: Wed, May 9 2012 3:25 pm
Subject: Request Response TTL

We'd like to be able to set an expiration date / time to live on requests.

I see the Publish method takes Action<PublishContext<T>> so we can set the
expiration time.

Bus.Instance.Publish(request, x =>
  {
    x.SetExpirationTime(DateTime.Now.AddSeconds(5));
  });

However, it doesn't appear we can set expiration when using PublishRequest.
Using SetTimeout only applies to the response, the request is still
processed. Is there a way to set expiration on requests? Something like:

Bus.Instance.PublishRequest(request, x =>
  {
    x.Handle<MyResponse>((message) => { });
    x.SetTimeout(TimeSpan.FromSeconds(10));
    x.SetExpirationTime(DateTime.Now.AddSeconds(10));
  });


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clay Anderson  
View profile  
 More options May 25 2012, 1:31 pm
From: Clay Anderson <supersonicc...@gmail.com>
Date: Fri, 25 May 2012 10:31:07 -0700 (PDT)
Local: Fri, May 25 2012 1:31 pm
Subject: Re: Request Response TTL

We were able to accomplish what we were after by purging the queue on
startup.

Bus.Initialize(serviceBusConfig =>
{
serviceBusConfig.UseLog4Net();
serviceBusConfig.UseRabbitMqRouting();
serviceBusConfig.SetPurgeOnStartup(true);
serviceBusConfig.ReceiveFrom("...");

}

We just wanted to avoid the client getting a timeout error but the server
still processing the request when it started back up.

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dru Sellers  
View profile   Translate to Translated (View Original)
 More options May 25 2012, 1:58 pm
From: Dru Sellers <d...@drusellers.com>
Date: Fri, 25 May 2012 12:58:02 -0500
Local: Fri, May 25 2012 1:58 pm
Subject: Re: [masstransit-discuss] Re: Request Response TTL

I like it when its easy. :)

On Fri, May 25, 2012 at 12:31 PM, Clay Anderson <supersonicc...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile   Translate to Translated (View Original)
 More options May 25 2012, 3:17 pm
From: Chris Patterson <ch...@phatboyg.com>
Date: Fri, 25 May 2012 14:17:24 -0500
Local: Fri, May 25 2012 3:17 pm
Subject: Re: [masstransit-discuss] Re: Request Response TTL

I'm going to add this anyway, I like it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »