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

One solution is to not cache queries, but cache data, as in the case with Datomic.


Of course then you're sacrificing some of the authentication, potentially.


It's worthwhile watching Nubank's talk on how they manage these things with Datomic on the backend [0] - providing a "complete" (filtered) database to the client, http caches for queries based on tx-time, and syncing mobiles data via transactions-since. Takes care of said concerns nicely - I'm just implementing this stuff today however, so I'm not sure how well it'll work in practice.

[0] - https://www.youtube.com/watch?v=7lm3K8zVOdY




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: