Episodes
maria.altyeva said almost 2 years ago on Publish and Subscribe to Events :
What is the advantage of using this over action cable?

David Kimura PRO said almost 2 years ago on Publish and Subscribe to Events :
ActionCable would be more for server to client interaction and this kind of pub/sub technique would be more for server to server interactions.

gabi PRO said almost 2 years ago on Publish and Subscribe to Events :
Can this kind of event driven development be used to make updates in the view without the need to poll, for instance? What I mean is, if I have a Rails app that is using React for the frontend, is there a way I could subscribe to one of these events and update my component when something in a model changes, like the price of an item went up or the name of an article was updated, for instance?

David Kimura PRO said almost 2 years ago on Publish and Subscribe to Events :
  gabi  I would probably use ActionCable or something similar like that to do view updates.

gabi PRO said almost 2 years ago on Publish and Subscribe to Events :
Thanks! I'll take a look at ActionCable then. 

almokhtar said almost 2 years ago on Publish and Subscribe to Events :
Does the notification doing the same thing in rails 6? https://api.rubyonrails.org/classes/ActiveSupport/Notifications.html

Login to Comment