Skip to main content

Module loader

Module loader 

Source
Expand description

Content-hash module loading and hot deployment for routing functions.

Status (2026-06): this is an in-memory HashMap keyed by content hash, not a beamr module registry. Module bytecode is only hashed for dedup; it is never executed — routing logic is supplied as a native Rust closure. Modules are content-addressed: loading the same bytecode twice reuses the already-loaded module, and hot deployment atomically swaps the active function while in-flight executions keep their own reference to the previous version until they complete.

Structs§

ContentHash
Content hash identifying a routing function module.
ModuleLoader
Loads routing modules by content hash, deduplicating identical bytecode.
RoutingFunction
An executable routing function referencing a loaded module.
RoutingModule
A routing module submitted for loading.
RoutingSlot
Holds the active routing function for a channel and supports hot deployment.