Hacker News new | ask | show | jobs
by scopendo 2736 days ago
How do you implement that cache invalidation, assuming a multiple app server environment? Is it something like a separate redis server?
1 comments

Yes, exactly: you use a fast data store such as redis or memcached.

As a user performs activities, this may involve a scenario requiring escalation or revocation of authorization roles and corresponding permissions. Invalidate cache at this moment. Lazy cache updated authorization info upon next request.

(I authored Yosai)