Research Article
A Transaction Traffic Control Approach Based on Fuzzy Logic to Improve Hyperledger Fabric Performance
Algorithm 2
Invoke fuzzy inference system method.
Input (Transaction Throughput, Transaction Latency, BenchmarkDB Url) | Output (Acceptance Rate) | Begin | Initialize the BenchmarkDB Url | Connect to the database with the BenchmarkDB Url | If an error occurs, then | Throw an error | Else | Initialize the database instance | Find the latest record from the collection | If an error occurs, then | Throw an error | Else | Extract the Transaction Throughput value from the result | Extract the Transaction Latency value from the result | Compute the Acceptance Rate value | Close the database connection | End |
|