News for hackers. Stuff that matters.
Re:How much faster is Redis at storing a blob of JSON compar... by throwawayy98121 on Wednesday October 02, 2019 @12:33PM (#21138306)
Isn’t the fundamental difference also use case? You would have to use Postgres if you need actual durability. AFAIK, one outage and your redis cache is gone... unless you’re running an HA cluster (which I dunno if that’s offered by redis). But even that doesn’t mean you have durability.
Re:How much faster is Redis at storing a blob of JSON compar... by derefr on Wednesday October 02, 2019 @02:22PM (#21139302)
Redis can be configured as `appendonly yes; appendfsync always`, which the Redis docs say is “very very slow”, but really would just make Redis work the way Postgres does with its WAL, with probably equivalent performance (or still slightly better, since there’s no checkpointing going on.)
Re:How much faster is Redis at storing a blob of JSON compar... by iliketoworkhard on Wednesday October 02, 2019 @01:49PM (#21139021)
In general caching systems are volatile and not meant to be used to store data that cannot be afforded to be lost. Of course that doesn't stop clients from storing critical data on there in return for the simple GET/PUT APIs and low latencies.

You can go for more complex caches such as Hazelcast which offers hot restarts by persisting data to disk.