Skip to content

Commit

Permalink
Update docs/MultiInstanceConnecting.md
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Kuzin <akudiyar@gmail.com>
  • Loading branch information
iDneprov and akudiyar committed Jun 8, 2023
1 parent e61d9dc commit b18fe10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/MultiInstanceConnecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We recommend to use load balancer in production applications rather than leaving
In the case of using **multiple instances** of `TarantoolClient` we strongly recommend to apply a **shuffle** function to the list of addresses.
By default, `TarantoolClient` uses the [round-robin](https://en.wikipedia.org/wiki/Round-robin_scheduling) approach for selecting the next available connection to distribute the load between Tarantool servers.
When several instances of `TarantoolClient` are used simultaneously, with the default connection selection strategy and without **shuffling** of the server addresses the first request from every instance will be sent to the same server.
You do not have to worry about shuffling addresses if you are using single TarantoolClient connected to multiple instances.
You do not have to worry about shuffling addresses if you are using a single `TarantoolClient` connected to multiple instances, or if you are using a custom connection selection strategy that takes into account the problem of simultaneous requests.

## Setting addresses manually

Expand Down

0 comments on commit b18fe10

Please sign in to comment.