Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmmm, using a database (eg PG) for the authoritative information, with memcached in front sounds like it would be practical for most uses.


At which point you should probably ask yourself: "What value is keeping all of my state inside this token providing me?"


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.


Thanks, that does need further thinking about. :)


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: