Home  >  Q&A  >  body text

nosql - Redis究竟应该用在何种场合

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

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

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

怪我咯怪我咯2705 days ago647

reply all(7)I'll reply

  • 大家讲道理

    大家讲道理2017-04-21 10:58:42

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-21 10:58:42

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 10:58:42

    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.

    reply
    0
  • PHPz

    PHPz2017-04-21 10:58:42

    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.)

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-21 10:58:42

    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.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-21 10:58:42

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-21 10:58:42

    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.

    reply
    0
  • Cancelreply