Skip to main content

Module handler

Module handler 

Source
Expand description

Shard-side RPC handler for incoming array operations.

handle_array_shard_rpc is called by the vshard dispatch table (see crate::vshard_handler) when an incoming VShardEnvelope carries an array opcode. It decodes the msgpack payload, delegates to the local array engine through ArrayLocalExecutor, and returns a serialised response envelope payload.

The ArrayLocalExecutor trait is defined in local_executor.rs and implemented in the main nodedb binary, which has access to the SPSC bridge and the Data Plane array engine. This keeps nodedb-cluster free of a compile-time dependency on the engine crates.

Functions§

handle_array_shard_rpc
Dispatch an incoming array shard RPC to the appropriate local handler.