3 ms·
Redis is in general, just an excellent pillow to put between your API, app servers, and frontend servers and your main backing stores for various purposes. Jus
by alnayyir 15y ago
Redis is in general, just an excellent pillow to put between your API, app servers, and frontend servers and your main backing stores for various purposes.
Just don't plan to keep anything important in it for very long. It's not even a great idea for queuing anything important as you're better of logging or using transactions for things that might cost you money if they fail.
Personally, I think it's the memcached I always wanted. :)
- antirez 15y agoYou can surely use Redis as a caching solution, but if your data fits in memory you can use it as a full featured and absolutely safe database: 1) with AOF you have innodb-level durability. 2) with replication you can do your HA setups. 3) RDB files are self-contained files holding all the dataset that can be copied and backed-up while Redis is running. 4) with the upcoming cluster you can have fault tolerance without too much problems, but for this there is to wait this fall.
- alnayyir 15y agoIs AOF the preferred persistence method than I take it? After seeing some pain that is required to resuscitate Redis from the persisted files if it goes down, I was wary of relying on that persistence. I'm pretty excited about the cluster functionality. At my current company sadly I'm working with big data so I can't really use Redis as a main backing store, but it's always in my head for personal projects.