ryanb / private_pub

Handle pub/sub messaging through private channels in Rails using Faye.
MIT License
864 stars 228 forks source link

Added Support for Redis Engine #38

Open zlu opened 12 years ago

zlu commented 12 years ago

When developer creates a private_pub_redis.yml under config's directory, private_pub will create Faye server with redis engine configuration. I have tested and it works.

There are a few things left to do: Check that developers do not specify both host/port and unix socket for redis in the config. Using a more recent release of Faye gem. The most up to date Faye gem has removed dependency to thin (now only in dev env). I have not tested against that version of Faye thus fixed the faye version to what I have been using in gemspec.

simonoff commented 12 years ago

+1

Stefano1990 commented 11 years ago

I know I am slightly late to the party but I would still appreciate some help. I am using private_pub in my application but I have noticed that after about 60-100 users concurrently using it, it slows noticably down. (delayes go up to 1-2 secs). So I wanted to see if switching to redis and multiple thin servers would cure this.

I managed to install zlu's branch but I am not sure how I can use multiple thin servers to serve faye? In the config there is only port 9292?

Thanks for your help.