Skip to content

Commit

Permalink
Update docs/using-the-nodejs-wrapper/using-plugins/UsingTheFastestRes…
Browse files Browse the repository at this point in the history
…ponseStrategyPlugin.md

Co-authored-by: crystall-bitquill <[email protected]>
  • Loading branch information
joyc-bq and crystall-bitquill authored Jan 6, 2025
1 parent e46bbb2 commit 8bed0fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ The host response time is measured at an interval set by the configuration param
The plugin can be loaded by adding the plugin code `fastestResponseStrategy` to the [`plugins`](../UsingTheNodeJsWrapper#aws-advanced-nodejs-wrapper-parameters) parameter. The Fastest Response Strategy Plugin is not loaded by default, and must be loaded along with the [`readWriteSplitting`](./UsingTheReadWriteSplittingPlugin.md) plugin.

> [!IMPORTANT]\
> **The `readerHostSelectorStrategy` parameter must be set to `fastestReponse` when using this plugin, otherwise an error will be thrown:** > `Unsupported host selector strategy: 'random'. To use the fastest response strategy plugin, please ensure the property readerHostSelectorStrategy is set to 'fastestResponse'.`
> **The `readerHostSelectorStrategy` parameter must be set to `fastestReponse` when using this plugin, otherwise an error will be thrown:**
> `Unsupported host selector strategy: 'random'. To use the fastest response strategy plugin, please ensure the property readerHostSelectorStrategy is set to 'fastestResponse'.`
```ts
params = {
Expand Down

0 comments on commit 8bed0fe

Please sign in to comment.