@@ -16,7 +16,7 @@ weight: 10
1616---
1717
1818Redis example code generally opens a connection, demonstrates
19- a command or feature and then closes. Real-world code typically
19+ a command or feature, and then closes. Real-world code typically
2020has short bursts of communication with the server and periods of
2121inactivity in between. Opening and closing connections
2222involves some overhead and leads to inefficiency if you do
@@ -43,7 +43,7 @@ of connections and adds them to the pool.
4343{{< image filename="/images/dev/connect/pool-and-mux/ConnPoolInit.drawio.svg" >}}
4444
4545Each time you "open" a connection
46- from the pool, the client actually justs returns one of these existing
46+ from the pool, the client returns one of these existing
4747connections and notes the fact that it is in use.
4848
4949{{< image filename="/images/dev/connect/pool-and-mux/ConnPoolInUse.drawio.svg" >}}
@@ -54,8 +54,8 @@ connections without actually closing it.
5454
5555{{< image filename="/images/dev/connect/pool-and-mux/ConnPoolDiscon.drawio.svg" >}}
5656
57- If all connections in the pool are in use but the app needs more then
58- the client can simply open new ones as necessary. In this way, the client
57+ If all connections in the pool are in use but the app needs more, then
58+ the client can simply open new connections as necessary. In this way, the client
5959eventually finds the right number of connections to satisfy your
6060app's demands.
6161
@@ -64,14 +64,14 @@ app's demands.
6464Instead of pooling several connections, a multiplexer keeps a
6565single connection open and uses it for all traffic between the
6666client and the server. The "connections" returned to your code are
67- simply to identify where to send the response data from your commands.
67+ used to identify where to send the response data from your commands.
6868
6969{{< image filename="/images/dev/connect/pool-and-mux/ConnMux.drawio.svg" >}}
7070
7171Note that it is not a problem if the multiplexer receives several commands close
7272together in time. When this happens, the multiplexer can often combine the commands into a
7373[ pipeline] ({{< relref "/develop/use/pipelining" >}}), which
74- improves efficiency even more .
74+ improves efficiency.
7575
7676Multiplexing offers high efficiency but works transparently without requiring
7777any special code to enable it in your app. The main disadvantage of multiplexing compared to
0 commit comments