Skip to content

每次pop一个数据 就要重新建立一次链接 存在性能问题吧? #2

Description

@HitoChen

如题

Activity

  1. Cuner commented on May 30, 2018

    @Cuner
    Owner

    这里是一个最初的bugfix,在使用过程中发现jedis链接断开,会导致消费失败问题
    客户端所有的pop请求共用一个jedis链接 显然是不合理的 单一的jedis实例也不是线程安全的
    而且jedisPool资源池中的连接是可以复用的,每次close方法也只是将资源归还到资源池

  2. Cuner commented on May 30, 2018

    @Cuner
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions