Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Service Broker / May 2006

Tip: Looking for answers? Try searching our database.

Activaiton indication queueing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 11 May 2006 07:58 GMT
When a stored procedure is configured for activation, and if the
max_queue_readers is set to 1, for example, how are activation requests
processed when queue entries arrive faster than they are received?  Are
activation requests also queued, are they event based?  I'm curious about
resources used for keeping up with activation requests, and what type of
persistence is involved, if any.
Kent Tegels - 11 May 2006 14:28 GMT
Hello Richard,

R> When a stored procedure is configured for activation, and if the
R> max_queue_readers is set to 1, for example, how are activation
R> requests processed when queue entries arrive faster than they are
R> received?  Are activation requests also queued, are they event based?

They are events. The typical design pattern for a queue reader is to write
it as an infinite look that does a waitfor(receive) and if that returns a
null conversation handle, the sproc should exit. I liken it to "fire-lotier-fire."

R> I'm curious about resources used for keeping up with activation
R> requests, and what type of persistence is involved, if any.

Have a read of "Event-Based Activation" and "Understanding When Activation
Occurs" in BOL. These are part of the "Service Broker Activation" Topic.

Thanks!
Kent Tegels
DevelopMentor
http://staff.develop.com/ktegels/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.