采用
Redis作为最知名的KV数据库,它支持多种数据结构,如字符串、哈希、列表、集合、有序集合等,同时也支持持久化、复制、集群等功能, 基本上是所有架构的默认配置。
在很多系统设计中,不少同学会将Redis作为缓存使用,这个并没有问题,Redis也能做这个事情,但是如果对缓存系统有更高的要求, 可以考虑使用memcached等产品。
注意: 由于近期Redis License策略调整, 如果商业产品涉及到Redis的使用,需要特别注意Redis的License,以免引起不必要的法律纠纷。
Redis & Friends
- Valkey: a new project to resume development on the formerly open-source Redis project - https://valkey.io/
- Apache Kvrocks: https://kvrocks.apache.org/
- Redict: a distributed key/value store independent fork of Redis - https://redict.io/
- RocksDB: https://rocksdb.org/
- Memcached: https://memcached.org/
- Dragonfly: https://github.com/dragonflydb/dragonfly
References
- Redis Commands: https://redis.io/docs/latest/commands/