3 ms·
If you consider it important, you have to store it in a real database. No buts. If you don't consider it important, sharded redis works fine.
by trumpdong 5mo ago
If you consider it important, you have to store it in a real database. No buts. If you don't consider it important, sharded redis works fine.
- 9dev 5mo agoRedis is a real database. If I wasn’t convinced it could retain data I hand it, I wouldn’t use it in the first place. Just because it works for your use case right now doesn’t mean there isn’t room for improvements to support others too.
- trumpdong 5mo ago> Redis is a real database. Oh good, then you don't need to do any of the stuff that you suggested to do
- 9dev 5mo agoThese two concerns are not mutually exclusive, the kind of database or data stored within it doesn't give any availability guarantees on its own. Even a single Postgres instance, which I suppose fits your understanding of a real database, is a single point of failure and not a highly available setup: If your database server goes down, clients get errors and the database is thus unavailable.
- amtamt 5mo ago> Redis is a real database No, redis is a memory cache, with some ACID like features bolt on. Even real databases have hard time maintaining consistency across nodes. CAP is a real constraint.