|
|
|
|
|
by 3pt14159
3655 days ago
|
|
> 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. |
|