ExESDBGater.Messages.LifecycleMessages (ex_esdb_gater v0.8.0)
Message definitions and helpers for the :ex_esdb_lifecycle PubSub instance.
Handles process lifecycle events, node management, and process state changes.
Common Topics
- "node_lifecycle" - Node joining/leaving cluster
- "process_lifecycle" - Process start/stop/crash events
- "supervision" - Supervisor tree events
- "cluster_membership" - Cluster membership changes
Node Field Pattern
- Uses
:node
for events originating on a specific node - Uses
:originating_node
for cluster membership events to distinguish from affected nodes in the cluster change
Summary
Functions
Broadcast a cluster membership change
Broadcast a node lifecycle event
Broadcast a process lifecycle event
Broadcast a supervision event
Create a ClusterMembership payload with current timestamp
Create a NodeLifecycle payload with current timestamp
Create a ProcessLifecycle payload with current timestamp
Create a SupervisionEvent payload with current timestamp
Validate and extract a secure message
Functions
Broadcast a cluster membership change
Broadcast a node lifecycle event
Broadcast a process lifecycle event
Broadcast a supervision event
Create a ClusterMembership payload with current timestamp
Create a NodeLifecycle payload with current timestamp
Create a ProcessLifecycle payload with current timestamp
Create a SupervisionEvent payload with current timestamp
Validate and extract a secure message