You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An incoming web request may subscribe and unsubscribe to a message bus.
Conceptually, that subscription is bound to the scope of the web request.
One of the reasons why I think the current implementation is a bit buggy is because of the shared internal state, especially stuff like the redis backend which has a single thread for subscribing.
It's extremely tricky to redirect those events back to the correct event loop unless the callback itself stores that information, in other words, multiplexing multiple clients into a single pubsub_adapter is extremely tricky.
I think a single global server doesn't really make sense for Falcon.
We can certainly wrap an internal per-thread instance in the existing interface. The reality is though, when a request comes in, we are basically resolving ActionCable.server per process and it currently feels like an extremely unnatural choke point (global state).
The text was updated successfully, but these errors were encountered:
An incoming web request may subscribe and unsubscribe to a message bus.
Conceptually, that subscription is bound to the scope of the web request.
One of the reasons why I think the current implementation is a bit buggy is because of the shared internal state, especially stuff like the redis backend which has a single thread for subscribing.
It's extremely tricky to redirect those events back to the correct event loop unless the callback itself stores that information, in other words, multiplexing multiple clients into a single
pubsub_adapter
is extremely tricky.I think a single global server doesn't really make sense for Falcon.
We can certainly wrap an internal per-thread instance in the existing interface. The reality is though, when a request comes in, we are basically resolving
ActionCable.server
per process and it currently feels like an extremely unnatural choke point (global state).The text was updated successfully, but these errors were encountered: