4 ms·
How about instead of "the whole point of JWT is to completely avoid server-side state management" we think of it as "the whole point of JWT is to reduce the ove
by AndrewSChapman 8y ago
How about instead of "the whole point of JWT is to completely avoid server-side state management" we think of it as "the whole point of JWT is to reduce the overheads of server-side state management".
In my answer above, I was pretty clear about how the load on the database can be significantly reduced with a blacklist and optionally Redis out front, thus allowing JWT to significantly reduce the burden on the database.
- therealdrag0 8y agoWhy would the lookups be faster in a small/empty table? If the lookup is by indexed ID it should be trivially fast either way. Furthermore, you can store the session information in Redis by ID, too, to reduce DB burden.