distribute
Values
pub fn version() -> String
The distribute library provides type-safe distributed computing primitives for Gleam.
Type-Safety Enforcement (v2.0+)
All messaging APIs now enforce compile-time type safety using:
- GlobalSubject(msg): Opaque wrapper with encoder/decoder for type-safe messaging
- Binary codecs: Encoder(a)/Decoder(a) for serialization
- gleam_otp integration: Compatible with standard
Subject(BitArray)
Migration from v1.x
Legacy untyped functions are deprecated:
- Use
send_global_typedinstead ofsend_global - Use
whereis_globalinstead ofwhereis_typedfor GlobalSubject - Use
whereis_with_tagfor custom actors with known tags
Core Modules
distribute/global: GlobalSubject type for type-safe distributed messagingdistribute/codec: Binary serialization with composable encoders/decodersdistribute/cluster: Cluster formation and managementdistribute/connection_pool: Efficient connection poolingdistribute/groups: Process groups (pg) with type-safe broadcastdistribute/messaging: Inter-node type-safe messagingdistribute/monitor: Node and process monitoringdistribute/node_builder: Fluent API for node configurationdistribute/registry: Global process registry with type-safe lookupdistribute/remote_call: Type-safe RPC mechanismsdistribute/receiver: Type-safe message receiving with gleam_otp selectorsdistribute/settings: Configuration settings