i>May complicate future horizontal scaling if needed</li>
</ol>
<h3 id="mitigations">Mitigations:</h3>
<ol>
<li>Clear documentation that sessions require re-authentication after a server
restart</li>
<li>Implement proper logging for security events to compensate for lack of
session history</li>
<li>Monitor memory usage in production</li>
<li>Consider distributed caching solutions if horizontal scaling becomes
necessary</li>
</ol>
<h2 id="implementation-notes">Implementation Notes</h2>
<ol>
<li>Use thread-sa