Implementing Order With ActionCable Signalling
25-Mar-2021 1629
Rails’ ActionCable is excellent for building realtime features in applications. However, in some realtime communication applications, ActionCable is just not good enough. Especially in a stack where order matters.In building realtime communication apps, other paradigms reign supreme. I’m talking about an event-driven paradigm like what Node.js and the JavaScript ecosystem give us.With WebRTC, orderliness guarantees reliable communication.Here’s an example. In the SDP exchanges created before establishing a peer-to-peer connection, the offer always goes first, then an answer. Without an offer, there won’t be an answer. Everything is event-driven: events trigger subsequent events needed to establish the connection.
Implementing Order With ActionCable Signalling #ruby #rubydeveloper #rubyonrails #Implementing #Order #ActionCable #Signalling https://rubyonrails.ba/link/implementing-order-with-actioncable-signalling