LoadIntervalSeconds does not indicate how long an instance should be left unloaded. LoadIntervalSeconds does not affect message delivery. If you send a message to an instance the instance will be immediately (synchronously) loaded from the persistence store in order to receive the message.
LoadIntervalSeconds is used to specify how often the SqlWorkflowPersistenceService checks the database for unloaded instances with expired timers. If you have an instance that goes idle because it is waiting on a 5 minute timer and the instance is unloaded it will not be reloaded for up to 1 hour and 5 minutes (depending on how long it has been since the last.time the database was checked). Typically you want to set this value to be anywhere from seconds to minutes depending on how much accuracy you need from your durable timers.
Thanks, Joel West MSFTE - SDE in WF runtime and hosting
This posting is provided "AS IS" with no warranties, and confers no rights |