Posts on channel

  • Phoenix Channels: Tracking presence

    Systems that require human intervention, especially in response to emergencies, depend on having accurate information about who is currently available. Phoenix Presence leverages Conflict-free Replicated Data Types (CRDTs) and the BEAM to provide a reliable and scalable presence tracking solution.
  • Phoenix Channels: Inverting responsibility

    WebSockets facilitate real-time, bi-directional communication with low latency but introduce inherent challenges with concurrency. They lack guaranteed message delivery, where messages can arrive out of sequence or not at all. This can lead to inaccurate data presentations on the client side, which is reasonable in non-critical contexts but unacceptable in...
  • Phoenix Channels: Real-time with WebSockets

    A Channel creates a separate process for each open WebSocket connection. It utilizes the WebSocket’s heartbeat to monitor the health of the connection, automatically terminating the process when the WebSocket is closed.