There’s a few things here I’m a bit… eh on:
- If the UNLOGGED tables are unavailable on replicas, you’re now putting read loads back on your primary which sounds like it defeats the point of having replicas to begin with?
- The last claim: “…[with] better persistence than traditional caching services…” seems like a weird claim to make if these tables get truncated on DB crashes. Redis with AOT seems far more robust.
key@lemmy.keychat.org 11 months ago
The “why” is missing an important one: put less load on your primary DB for frequent gets. If you can replace your cache with your primary DB then ya you probably don’t need a cache. Just fix indexing, data normalization, and/or access patterns.