messaging - SQL Server Service Broker and batches -


am right in understanding of sql server (2008 r2 in case) service broker messages batched in terms of conversations? in other words, if have query this:

declare @messages table(      handle uniqueidentifier,      message_body nvarchar(max),      message_type_name sysname );  receive top 5     conversation_handle,     message_body,     message_type_name dbo.mymessagequeue @messages  select conversation_handle, message_body @messages 

that 5 rows returned if same conversation? @ moment sending out messages 1 conversation @ time, if there ten such messages in queue, being returned 1 @ time.

receive dequeue messages belonging one conversation group. unless explicit conversation group management, each conversation own group. if send 1 message per conversation, you'll end receive-ing 1 message every time. covered in conversation group locks.

receive expensive statement run, high throughput must group more messages together, via conversation reuse.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -