RealityServer Features

Smart Batch

Smart batch is a variant of the "batch" command that allows for templating of command parameters via a provided environment. Individual commands can also set their results into the environment allowing later commands to access them.

Smart batch is useful in cases where a client operation requires multiple commands to execute and latter commands need the results of earlier ones to function. Traditionally this required multiple round trip requests to the server, an initial call to request the information and further ones to set the values. Since RealityServer 5.0 it has been possible to mitigate this by implementing custom V8 commands to perform all these requests on the server. The smart_batch command provides a middle ground between these two for simple use cases where the results of commands simply need to be applied to the parameters of future commands.