3 ms·
I'm facing a similar challenge, although at a much(MUCH!) smaller scale. We have nearly everything in Postgres, and redis serves as both caching layer (non-per
by gingerlime 10y ago
I'm facing a similar challenge, although at a much(MUCH!) smaller scale.
We have nearly everything in Postgres, and redis serves as both caching layer (non-persistent), but also for rails session storage and Sidekiq (persistent).
Having one source of truth can make things like failover much easier. I can handle PG failover, and also redis, but I'd rather not have to deal with both. Especially if you consider the potential of things going slightly out-of-sync (think a job in sidekiq that relies on an id in PG, one of which loses a few microseconds of data during replication etc, just speculating a scenario here)
Did anybody face similar challenges and care to share their thoughts?