sse-rails-engine icon indicating copy to clipboard operation
sse-rails-engine copied to clipboard

Shared connections?

Open asabourin opened this issue 8 years ago • 1 comments

There's a surprisingly small amount of resources and gems built around Rails' SSE, but this one seems perfect to make it usable at scale while keeping its simplicity, thanks for the great work!

As far as I understand the list of open connections is an instance hash of the singleton Manager class so shared only within the app context but not accessible to a Sidekiq worker or another instance of the app on another server for instance. Do you think there could be an easy to have that connections hash shared across, maybe through references in Redis?

I'm not super familiar with the Rack hijack thing so I'm not sure if that makes it difficult to achieve. Happy to give it a shot and submit a PR if you can provide some guidance to get started.

Thanks!

asabourin avatar May 26 '16 05:05 asabourin