Chapter 9. Distribution and fault tolerance

This chapter covers

  • Implementing a distributed, fault-tolerant application
  • Cookies and security
  • Connecting to nodes in a local area network (LAN)

In the previous chapter, we looked at the basics of distribution in Elixir. In particular, you now know how to set up a cluster. We also looked at Tasks, which are an abstraction over GenServers that makes it easy to write short-lived computations.

The next concept we’ll explore is fault tolerance with respect to distribution. For this, you’ll build an application that will demonstrate how a cluster handles failures by having another node automatically stepping up to take the place of a downed node. To take things further, it will also demonstrate how a ...

Get The Little Elixir & OTP Guidebook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.