Skip to content

How to decide resubscribe interval for client observers #9416

Answered by ReubenBond
klasrpersson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @klasrpersson the validity of an observer reference is tied to the lifecycle of the observer (eg client) itself, and not the silo. They can survive silo restarts but not client restarts.

The resubscribe interval is used as a cleanup mechanism for observers which either point to defunct clients or have been disposed by the client (eg, the reference has gone out of scope and has been garbage-collected). A short interval means you have network chattiness & overhead. A large interval means you hold onto defunct references for a longer period after they become invalid, possibly resulting in error or warning logs.

The need for a cleanup interval arises from the observer methods being void an…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by klasrpersson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants