Skip to content

Multiplexing

GLIDE’s API is asynchronous and uses a multiplex connection to interact with Valkey. This means all requests are sent through a single connection as the Rust core takes advantage of Valkey’s pipelining capabilities to improve performance.

Using a single connection is the recommended method to optimize performance with Valkey.

However, in some scenarios, opening multiple connections can be more beneficial. For more on optmizing performance with multiple connections, take a look at our guide on pipelining.