message_bus icon indicating copy to clipboard operation
message_bus copied to clipboard

Is there anything fundamentally preventing a `message_bus` ActionCable adapter?

Open seanpdoyle opened this issue 7 years ago • 1 comments

I want to preface this issue by thanking you for your work on this gem (🎉), and emphasizing that this isn't a feature request.

Are there any fundamental conflicts that would prevent some inter-operability work to be done in support of an ActionCable adapter?

From the front-end side, it looks like an ActionCable.Consumer accepts an arbitrary URL (ws:// or https://).

On the back-end side, there are already several adapters, including adapters using Postgres and Redis.

I've only recently started working with the message_bus gem (so please correct me if I'm wrong), but as I understand it, the ActionCable::SubscriptionAdapter::Base API (i.e. broadcast, subscribe, unsubscribe) seems similar enough to the MessageBus API (i.e. publish, subscribe, unsubscribe) that some glue-code could be written to make the two compatible.

seanpdoyle avatar Aug 04 '18 15:08 seanpdoyle

Are there any fundamental conflicts that would prevent some inter-operability work to be done in support of an ActionCable adapter?

The only fundamental issue I can think about is that message bus is inherently reliable and action cable is best effort.

I am not sure how interoprability really would look, but I guess you could pull something off. The underlying paradigm mismatch though is not easy to solve.

SamSaffron avatar Aug 06 '18 04:08 SamSaffron