:rex is a locally registered Erlang kernel process that underpins remote procedure calls. An RPC request sends an MFA tuple to the target node’s :rex process; :rex invokes apply/3 and returns the result. section 12.1.5
This makes message passing the core distribution primitive: services such as :rpc communicate with processes registered locally on remote nodes rather than requiring a separate transport abstraction. section 12.1.5
iex(node1@localhost)1> :rpc.call(:node2@localhost, Kernel, :abs, [-1]) 1
Observe a remote Kernel.abs/1 call through the :rpc interface. section 12.1.5
