News for hackers. Stuff that matters.
Re:JSON Web Tokens vs. Sessions by 3pt14159 on Saturday June 18, 2016 @11:13PM (#11931652)
> despite this disadvantage some applications just cannot afford the load of every single request touching the DB or cache.

Disagree. This is one of the simplest things alive to distribute. Split the query from the token do the query in the DB and the token lookup is effectively a distributed hash table lookup (assuming the token is, say, a UUID). Once the DB query comes back store the result pending the successful retrieval of the token.

What's difficult is handling something like millions of concurrent video downloads / uploads - not looking up tiny tokens.

Re:JSON Web Tokens vs. Sessions by paulddraper on Sunday June 19, 2016 @01:28AM (#11931894)
tiny tokens, but needed for every single operation
Re:JSON Web Tokens vs. Sessions by 3pt14159 on Sunday June 19, 2016 @09:30AM (#11932903)
Sure, but the really hot tokens could be cached right next to the DB. Plus how many operations is a person doing per second? If its more than a couple you can batch them pretty easily.