开发者

Single conversation in Service Broker

开发者 https://www.devze.com 2023-01-20 09:47 出处:网络
I\'m going to do async auditing on my SQL Server 2008 as shown here: http://auoracle.blogspot.com/2010/02/service-broker-master-audit-database.html

I'm going to do async auditing on my SQL Server 2008 as shown here: http://auoracle.blogspot.com/2010/02/service-broker-master-audit-database.html

What it does is:

  • a trigger sends a message to a queue in the service broker
  • another SP in other database receives the messages and process them

The possible problem I see is that it's using a single conversation to send all the messages in order, which is a requirement.

I'm just a little concerned about the fact it's using a single conversation, I guess it's not the common usage. Do you know if there's any problem on doing so?

Thanks!开发者_Go百科


There's nothing wrong with using a single conversation. Some people use conversation pooling with several pre-created conversations, but unless you're hitting a performance bottleneck, I wouldn't worry about it.

One thing that you should get right is error handling, closing the conversation and opening a new one in case of error.

0

精彩评论

暂无评论...
验证码 换一张
取 消