Design for Unreliable Connections
Dive deep into Phoenix channels and learn about unreliable connections.
We'll cover the following...
In the previous section, we learned how to restrict access to a Channel-based application using authentication. We covered enough to build basic Channel applications, but there’s still more we need to know to build full-featured Channel applications. This section will look at concepts such as Channels in a cluster of servers, how to customize Channel behavior, and how to write tests for Channels.
First, we’ll cover the unreliable nature of internet connections and consider how we can build applications that survive the strange things that can happen with real users. Flaky internet connections, bugs in an application, and server restarts can lead to connection trouble for users.
We’ll then learn about different challenges when using Channels with multiple servers. We’ll see different patterns that can be used to ...