Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello All,

We are thinking to use the service broker queues of sql server for processing the background business calculations of the asp.net mvc application is this good idea to use service broker ?






Thanks
Nagendra

What I have tried:

every one is suggesting to use windows service we don't want to run windows service ,we want to use service broker
Posted
Updated 25-Oct-16 19:08pm
v4

First of all the service broker is intended for handling messaging between two or more instances. Have a look at SQL Server Service Broker[^]

If you just need to do background calculations, why not utilize SQL Server Agent[^]

Another thing is that enforcing business rules should typically be done immediately when the data is modified, preferably inside the modifying transaaction. If you postpone the running the logic, you may easily end up in situations where the database contains illogical or even false data.
 
Share this answer
 
I would use a combination of the SSB and a Windows service to poll. You might want to read this:

Using tables as Queues[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900