Home All Groups Group Topic Archive Search About

Service Broker Conversation Timer

Author
11 Nov 2005 11:24 PM
William Stacey [MVP]
How is Conversation Timer () Timeout = 60; handled internally?  Does each
call start a new system timer?  Or is one time used that always waits for
the "least" time for all waiting conversations?  TIA

--
William Stacey [MVP]

Author
12 Nov 2005 12:38 AM
Remus Rusanu
Conversation timers are implemented inside SQL based on internal worktables.
They do not use system resources (timers, handles, threads etc) and are
designed to scale up (millions).
Timers are persisted into the database and they will do fire after failover
(clustering or mirroring), database restore/attach, server restart etc. They
are not designed, however, for high accuracy.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

HTH,
~ Remus Rusanu

SQL Service Broker
http://msdn2.microsoft.com/en-us/library/ms166043(en-US,SQL.90).aspx


Show quote
"William Stacey [MVP]" <william.sta***@gmail.com> wrote in message
news:O5V1Rcx5FHA.268@TK2MSFTNGP10.phx.gbl...
> How is Conversation Timer () Timeout = 60; handled internally?  Does each
> call start a new system timer?  Or is one time used that always waits for
> the "least" time for all waiting conversations?  TIA
>
> --
> William Stacey [MVP]
>
>
>
Author
12 Nov 2005 5:14 AM
William Stacey [MVP]
Thanks Remus.  I was hoping it was not system timers.  Can you use a
datetime instead of seconds?  Or you have to do the conversion to seconds
manually.  Cheers!

--
William Stacey [MVP]

Show quote
"Remus Rusanu" <Remus.Rusanu.NoSpam@microsoft.com.nowhere.moon> wrote in
message news:uhqdbFy5FHA.884@TK2MSFTNGP14.phx.gbl...
> Conversation timers are implemented inside SQL based on internal
> worktables. They do not use system resources (timers, handles, threads
> etc) and are designed to scale up (millions).
> Timers are persisted into the database and they will do fire after
> failover (clustering or mirroring), database restore/attach, server
> restart etc. They are not designed, however, for high accuracy.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> HTH,
> ~ Remus Rusanu
>
> SQL Service Broker
> http://msdn2.microsoft.com/en-us/library/ms166043(en-US,SQL.90).aspx
>
>
> "William Stacey [MVP]" <william.sta***@gmail.com> wrote in message
> news:O5V1Rcx5FHA.268@TK2MSFTNGP10.phx.gbl...
>> How is Conversation Timer () Timeout = 60; handled internally?  Does each
>> call start a new system timer?  Or is one time used that always waits for
>> the "least" time for all waiting conversations?  TIA
>>
>> --
>> William Stacey [MVP]
>>
>>
>>
>
>
Author
12 Nov 2005 7:53 AM
Remus Rusanu
Seconds only, sorry. Of course you can always use DATEDIFF(second,
GETDATE(), @datetime) to obtain the seconds left until any datetime.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

HTH,
~ Remus Rusanu

SQL Service Broker
http://msdn2.microsoft.com/en-us/library/ms166043(en-US,SQL.90).aspx


Show quote
"William Stacey [MVP]" <william.sta***@gmail.com> wrote in message
news:%23OtKxf05FHA.1188@TK2MSFTNGP12.phx.gbl...
> Thanks Remus.  I was hoping it was not system timers.  Can you use a
> datetime instead of seconds?  Or you have to do the conversion to seconds
> manually.  Cheers!
>
> --
> William Stacey [MVP]
>
> "Remus Rusanu" <Remus.Rusanu.NoSpam@microsoft.com.nowhere.moon> wrote in
> message news:uhqdbFy5FHA.884@TK2MSFTNGP14.phx.gbl...
>> Conversation timers are implemented inside SQL based on internal
>> worktables. They do not use system resources (timers, handles, threads
>> etc) and are designed to scale up (millions).
>> Timers are persisted into the database and they will do fire after
>> failover (clustering or mirroring), database restore/attach, server
>> restart etc. They are not designed, however, for high accuracy.
>>
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> HTH,
>> ~ Remus Rusanu
>>
>> SQL Service Broker
>> http://msdn2.microsoft.com/en-us/library/ms166043(en-US,SQL.90).aspx
>>
>>
>> "William Stacey [MVP]" <william.sta***@gmail.com> wrote in message
>> news:O5V1Rcx5FHA.268@TK2MSFTNGP10.phx.gbl...
>>> How is Conversation Timer () Timeout = 60; handled internally?  Does
>>> each call start a new system timer?  Or is one time used that always
>>> waits for the "least" time for all waiting conversations?  TIA
>>>
>>> --
>>> William Stacey [MVP]
>>>
>>>
>>>
>>
>>
>
>

AddThis Social Bookmark Button