Command service timeout

HI @gerolf ,

Thanks for the explanation. I was looking for similar info.

One question though:
We are using ledger-api-client, per the source code, how is the defaultDeduplicationTime 30s (see below) differs to the 24h you mentioned above?

Thanks,
Daniel

/**
  * @param maxCommandsInFlight The maximum number of unconfirmed commands the client may track.
  *                            The client will backpressure when this number is reached.
  * @param maxParallelSubmissions The maximum number of parallel command submissions at a given time.
  *                               The client will backpressure when this number is reached.
  * @param defaultDeduplicationTime The deduplication time to use for commands that do not have
  *                                 a deduplication time set. The deduplication time is also used
  *                                 as the time after which commands time out in the command client.
  */
final case class CommandClientConfiguration(
    maxCommandsInFlight: Int,
    maxParallelSubmissions: Int,
    defaultDeduplicationTime: Duration,
)

object CommandClientConfiguration {
  def default = CommandClientConfiguration(1, 1, Duration.ofSeconds(30L))
}
1 Like