What are Volatile queues?

 Posted by articlesMaint on 9/14/2009 | Category: WCF Interview questions | Views: 11957

Answers:- There are scenarios in the project when you want the message to deliver in proper time. The timely delivery of message is more important than losing message. In these scenarios, Volatile queues are used.
Below is the code snippet, which shows how to configure Volatile queues. You can see the binding Configuration property set to Volatile Binding. This code will assure that message will deliver on time but there is a possibility that you can lose data.


<!-- use appSetting to configure MSMQ queue name -->
<add key="queueName" value=".\private$\ServiceModelSamplesVolatile" />

<service name="Samples.StockTickerServ"
<!-- Define NetMsmqEndpoint -->
<endpoint address="net.msmq://localhost/private/ServiceModelSamplesVolatile"
contract="Samples.InterfaceStockTicker" />

<binding name="volatileBinding"

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response