GithubHelp home page GithubHelp logo

Comments (4)

FZambia avatar FZambia commented on June 15, 2024 1

Hello, @anhnguyensgu!

There are 3 modes in current Redis broker implementation:

  1. Standalone Redis
  2. Redis with Sentinel
  3. Redis Cluster

For cases 1 and 2 pool size does not really matter - we utilize Redis pipelining and only several active connections from Centrifuge to Redis are active at any point of time.

I think pool size only matters in Redis Cluster case - where we are using pool to issue most of commands except publish without history (which is pipelined).

I think in the near future Centrifuge Redis implementation may migrate from redigo to go-redis or possibly to rueidis library - and those allow using pipelining for communication with Redis Cluster too. Pool size should not be too important in that case I believe.

So I think we should not expose pool size at this point. Do you have issues with current default pool size (which I think may happen only in Redis Cluster scenario)? If yes - we can address it more precisely, possibly looking how go-redis from the mentioned pull request behaves - I think it should provide better overall throughput.

from centrifuge.

anhnguyensgu avatar anhnguyensgu commented on June 15, 2024

Thanks for your support. At this time, I have no issues with the pool, I will let you know if having any.

from centrifuge.

FZambia avatar FZambia commented on June 15, 2024

We migrated to rueidis library in #262 – where connection pool does not have much sense anymore, Centrifuge will use pipelining over several connections for all operations. So I suppose this issue can be closed.

from centrifuge.

FZambia avatar FZambia commented on June 15, 2024

The draft of blog post about rueidis migration: centrifugal/centrifugal.dev#18 - @anhnguyensgu probably you will be interested to check it

from centrifuge.

Related Issues (20)

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.