Book Image

Elixir Cookbook

By : Paulo Pereira
Book Image

Elixir Cookbook

By: Paulo Pereira

Overview of this book

Table of Contents (16 chapters)
Elixir Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Processes and Nodes

This chapter will cover the following recipes:

  • Sending messages between processes

  • Making code run on all available CPUs

  • Using tasks to perform multiple concurrent computations

  • Creating a stateful server process (messages with counters)

  • Using agents as an abstraction around states

  • Using an ETS table to share the state

  • Creating named nodes

  • Connecting nodes

  • Executing code in a different node