- DATE:
- AUTHOR:
- Ory Team
Enhanced Session Extension Performance
Ory has improved the performance of extending session lifespans. This enhancement addresses transaction contention issues that occur when reading and writing to the same session row simultaneously. Key updates include:
Introduction of a locking mechanism on the row to reduce transaction contention.
Addition of a new feature flag to toggle returning
204 No Content
instead of200
and the session.
Note: All reads on the session table will have to wait for the transaction to commit before returning a value. This may cause longer response times on /session/whoami
for sessions being extended concurrently.
BREAKING CHANGES: The /admin/session/.../extend
endpoint will now return 204 No Content
for new Ory Network projects.
Returning 200
and the session body will be deprecated in the future.
If you are interested in implementation details, you can review the pull request on GitHub.
For instructions on how to extend sessions, please refer to the Ory Documentation.