concept crash in category elixir

appears as: crashes, crash, A crash, crash, The crash
Elixir in Action

This is an excerpt from Manning's book Elixir in Action.

  • Fault-tolerance—A system has to keep working when something unforeseen happens. Unexpected errors occur, bugs creep in, components occasionally fail, network connections drop, or the entire machine where the system is running crashes. Whatever happens, you want to localize the impact of an error as much as possible, recover from the error, and keep the system running and providing service.
  • The aim of fault-tolerance is to acknowledge the existence of failures, minimize their impact, and ultimately recover without human intervention. In a sufficiently complex system, many things can go wrong. Occasional bugs will happen, components you’re depending on may fail, and you may experience hardware failures. A system may also become overloaded and fail to cope with an increased incoming request rate. Finally, if a system is distributed, you can experience additional issues such as a remote machine becoming unavailable, perhaps due to a crash or a broken network link.

    The Little Elixir & OTP Guidebook

    This is an excerpt from Manning's book The Little Elixir & OTP Guidebook.

    The story is different when it comes to building concurrent programs. Because more than one process is running, it’s possible for another process to detect the crash and subsequently handle the error. Let that sink in, because it’s a liberating notion.

    5.3.4. Handling crashes

    I’ve saved the best for last. What happens when one of the child processes crashes? If you were paying attention, the supervisor receives a message that looks like {:EXIT, pid, reason}. Once again, you use the handle_info/3 callback to handle the exit messages.