Skip to main content

Module forward

Module forward 

Source
Expand description

Query forwarding trait for leader-based request routing.

When a client connects to a non-leader node, the query is forwarded to the leader for the target vShard. The RequestForwarder trait abstracts local execution so the cluster crate doesn’t depend on the main binary’s SharedState or pgwire infrastructure.

Structs§

NoopForwarder
No-op forwarder for single-node mode or testing.

Traits§

RequestForwarder
Trait for executing forwarded SQL queries on the local Data Plane.