Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (4.1k points)

What is the relationship between MaxMessageCount, AbsoluteMaxBytes, and PreferredMaxBytes?

A block in fabric consists of a MaxMessageCount number of transactions or PreferredMaxBytes?

What should be the value of these to get maximum throughput?

1 Answer

0 votes
by (14.4k points)

To understand the difference, we should first try and understand what these terms mean individually. 

MaxMessageCount is the maximum number of transactions that are permitted in a block. 

AbsoluteMaxBytes are the maximum number of bytes that are allowed for serialized transactions in a block. 

PreferredMaxBytes are the preferred number of bytes that are allowed for serialized transactions in a batch. When a transaction is larger than the PreferredMaxBytes, a larger batch will be formed. 

If there are numerous transactions then stuff as many transactions as possible in a block to get the maximum throughput. Otherwise, you can tweak the BatchTimeout and MaxMessageCount for optimizing overall transaction throughput. 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...