Creating, Joining and Leaving Groups
Explore how to manage group membership in distributed systems by using the Tooz library. Understand creating groups, joining and leaving processes, backend requirements, and how to track membership asynchronously to maintain robust coordination.
We'll cover the following...
The Tooz library implements a common pattern that it calls ”group membership”. The pattern is quite easy to understand and is illustrated in the following figure.
Group rules
Here are the rules: a group is a set containing zero or more members. When a node joins a group, it becomes a member of this group. A member can leave the group at any time: either on its own (shutdown) or because it did not renew membership. The membership tracking is automatically done by Tooz and the backend it uses.
Note: As discussed in the previous chapter, Tooz supports several backends including memcached and etcd ...