Global Process Registration
Manage global process names and discover processes across a distributed Erlang cluster for coordinated operations.
Global Names Across Nodes
In distributed Erlang, processes often need to find each other, even if they're on different machines. How do you find a process when you don't know which node it lives on?
Erlang's global module provides a solution: global process registration. It allows you to give a process a unique name that is known across all connected nodes in your cluster.
Local vs. Global Processes
Normally, when you register a process using register/2, its name is only known on the local node. If my_process is on nodeA@host, a process on nodeB@host can't find it just by its name.
Global registration solves this! It acts like a distributed directory service. Any process on any connected node can look up a globally registered name and get the corresponding Process ID (PID), regardless of where that process is running.
All lessons in this course
- Node Communication & Setup
- Remote Procedure Calls (RPC)
- Global Process Registration
- Distribution Security & Cookies