Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
justinclift
on March 14, 2017
|
parent
|
context
|
favorite
| on:
JSON Web Tokens should be avoided
Hmmm, using a database (eg PG) for the authoritative information, with memcached in front sounds like it would be practical for most uses.
falcolas
on March 14, 2017
|
next
[–]
At which point you should probably ask yourself: "What value is keeping all of my state inside this token providing me?"
mwpmaybe
on March 14, 2017
|
prev
|
next
[–]
Probably not. If the Pg instance is replicated, as indicated above, it'll be challenging to keep the Memcached copy in sync. In other words, you can't just use the caching feature of your ORM, you'll need another piece.
justinclift
on March 14, 2017
|
parent
|
next
[–]
Thanks, that does need further thinking about. :)
cygned
on March 15, 2017
|
prev
[–]
Postgres is not a good solution for this kind of data. I'd use Redis, but maybe there are even better products.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: