You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AUT-5433: Wait for both session stores before calling back
The dual session store was previously calling back to `express-session` before the secondary store operation completed. This meant the response could be sent and the browser could fire the next request before the secondary write finished, creating a window where the stores had different data.
It also caused false positives in the consistency check, as the secondary read (during a `get()` call) would return data that had already been overwritten by the current request's `set()` call.
Moving all callbacks to after both store operations complete should reduce the chance of stale session data between the stores. This may cause a slight increase in latency during the transition period until DynamoDB becomes the primary and exclusive store. It would be good to try to keep the transition period reasonably short, but having enough confidence around the consistency of data across the two stores.
0 commit comments