|
Create a job that does the following:
- walk through the active OperationContext objects and assemble a list of in-use sessions
- go through the in-mem session cache and remove records that have expired (unless they are currently in-use)
- assemble a list of remaining cached records to be refreshed
- issue a bulk write to the sessions collection to update lastUse times for all relevant sessions
- remove any session records from the cache if the authoritative record has been removed
This should be run in a background job on all servers.
|