nosql - Redis究竟应该用在何种场合
怪我咯
怪我咯 2017-04-21 10:56:42
0
7
715

如各位所看到,目前网站右侧的新鲜事列表出现了些异常,这是由于我们使用的redis驱动的某个错误造成的。现在这个错误已经被排除,但是由此引申了我对Redis使用场合的一些思考

  1. 列表缓存
  2. 键值对缓存
  3. 队列服务

以上是我想到的一些应用场景,这种使用是否合理。还有其它应用场景吗?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(7)
大家讲道理

We use sorted set to make the ranking system, which is much simpler than the traditional implementation method

Peter_Zhu

We use redis to count the number of visits to articles, and generate yesterday’s click rankings, this month’s click rankings and other data.
The performance is very good, but the disadvantage is that the internal speed of the machine is not enough. Our solution is to write to two machines at the same time, and clear the data of one of them every once in a while.

Ty80

The current development of redis is greatly influenced by the author. His milestones were not particularly well planned, resulting in great differences and lack of consistency between each version.
After using it, I find queue very useful. And then it would be really nice to do some counters.
Where I think redis should be improved:
Distributed support actually only needs to be supported on the customer service side like memcached.
Are these features of VM useful?
The php driver of redis feels good when using phpredis.

PHPzhong

Recently using redis in projects
1.List as message queue
2.Sorted Sets do some intersection/union operations (intersect the friend lists of two users to get common friends, etc.)

Peter_Zhu

We use redis extensively in applications with high performance requirements, and mainly use redis's sorted set, hastset, pub/sub data structures.
Basically, it replaces relational data as a storage service for data persistence in the front-end (applications facing end users). Of course, there are other data storage products behind redis as final data backup.

大家讲道理

Let’s talk about some features of Redis that I use: bitset, hashset, sorted set, pub/sub, k-v cache

大家讲道理
This is caused by a bug in the redis driver we use. Now this error has been eliminated,

Can you please talk about this error? Want to know more about it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template