SDK
SDK Javascript v7.x
2

constructor #

Available since 7.9.0

Instantiate a new BatchController.

Each instance will start a timer to periodically send batch requests.

Arguments #

const batch = new BatchController(sdk, options);

ArgumentTypeDescription
sdk
Kuzzle
SDK instance
options
object
Additional options

options #

  • interval: Timer interval in ms (10). Actions will be executed every {interval} ms
  • maxWriteBufferSize: Max write buffer size (200). (Should match config "limits.documentsWriteCount")
  • maxReadBufferSize: Max read buffer size (10000). (Should match config "limits.documentsReadCount")