SpinTheMic
Pro

Interview practice question

Caching token validation

System Design · Caching · Intermediate

Every API request validates the user's token by calling the auth service, adding 30 ms and heavy load. How do you improve it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Use self-contained signed tokens (JWT).
  • Verify signature locally.
  • Cache public keys.
  • Or cache introspection results briefly.
  • Handle revocation with short expiry.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics