title: Should I store JWT tokens in redis?
body: <p>I'm building an application with ExpressJS, Mongodb(Mogoose). Application contains routes where user has to be authenticated before accessing it.</p>
  
  <p>Currently I have written a express middleware to do the same. Here with the help of JWT token I'm making mongodb query to check whether user is authenticated or not. but feel this might put unnecessary request load on my database.</p>
  
  <blockquote>
    <p>should I integrate redis for this specific task?<br>
    does it will improve API performance? or should go ahead with existing
    mongodb approach?</p>
  </blockquote>
  
  <p>would be helpful if I get more insights on this.</p>