Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Max payload size on CantonForum ↗

Max payload size on Canton

App Development3 posts330 views2 likesLast activity Jan 2022
KC
kctamOP
Jan 2022

Hi Team,

I have a follow-up question from this: Max Payload Size

Is this applicable to Canton, i.e. once we have introduced all the components in the path (participant node, sequencer, mediator, etc).

Many thanks!

kc

MA
MatthiasSchmalz
Jan 2022

Hi KC,

Canton also uses GRPC for communication between nodes. Therefore, any message exchanged between nodes needs to be <=2GB.

In the default configuration, we apply a default limit of 4MB. If you run into errors, you may want to increase it. The relevant settings are here:

canton.<path-to-my-domain>.domain-parameters.max-inbound-message-size
canton.<path-to-my-participant>.ledger-api.max-inbound-message-size
canton.<path-to-my-node>.admin-api.max-inbound-message-size

Unfortunately, due to GRPC limitations, Canton will reject a command with a low-level exception, if the corresponding transaction is too big. We are working on this.

Hope that answers your question,
Matthias

KC
kctam
Jan 2022

Thanks @MatthiasSchmalz So I will assume that the limiting factor is on GRPC, and not in any components along side the path. Thanks again.

cheers,
kc

← Back to Discussions