Git Product home page Git Product logo

jacketwoo.github.io's People

Contributors

jacketwoo avatar

Watchers

 avatar  avatar

Forkers

sukidou

jacketwoo.github.io's Issues

请问博主现在用什么php的redis客户端?

我们之前用的phpredis的php7分支,平时并发不大的时候倒也没发现有什么异常,上周我们搞了一个活动,在高并发大流量下phpredis表现非常差劲,各种报错,且redis cluster负载非常不均衡(使用的是FAILOVER_DISTRIBUTE的读取策略)。

后有幸拜读到博主的《phpredis的RedisCluster客户端使用总结》博文,醍醐灌顶。

后切换至phpredis的develop分支,使用FAILOVER_DISTRIBUTE_SLAVES的读取策略 + 随机连接不同的redis节点,redis cluster的负载稍微平均了一点,但是整体还是相当不稳定,经常会出现connect timeout的错误。

解决无果,实在没有办法的情况下,最后只能把高并发的接口迁移至GO来实现,此后方可扛住高并发的压力。然而此次高并发是属于业务比较简单的,如果出现业务比较复杂的大流量,短期内无法迁移至像GO这种高性能的语言上,PHP应该怎么样才能保证连接redis的稳定性呢?

希望博主不吝赐答,谢谢~

你好,希望认识一下

我看了您的三篇文章,正是我当前遇到的问题,向您这样的先驱者致敬,希望可以联系到你交个朋友,并希望获得您的帮助
您的邮箱太高级,我无法发送邮件给您

我的qq:8877236 您可以叫我:佳恒

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.