A process group is a named, cluster-wide collection of processes. It lets distributed nodes categorize replicas, discover group members, and broadcast coordination messages across them. section 12.1.3
Using the :pg module follows a small operational workflow:
- Join processes to an arbitrarily named group with :pg.join/2. section 12.1.3
- Query membership with :pg.get_members/1, then send requests to every returned process when all replicas must be updated. section 12.1.3
Replicated to-do lists
Place each node's process responsible for Bob's to-do list in {:todo_list, "bob"}. Broadcast updates to every group member so replicas stay synchronized; query one member when reading. section 12.1.3


