bcgov / greenlight

A demonstration of the verifiable organization network showing a new restaurant gathering the permits necessary to open.
Apache License 2.0
34 stars 45 forks source link

Performance/Load Testing Investigation #173

Closed esune closed 5 years ago

esune commented 5 years ago

This is a placeholder for performance/load testing for dFlow and supporting environments (toB, Ledger).

We have noticed that the system tends to respond slowly to requests that involve querying data coming from the ledger and the agents. We need a way of testing performance, determining possible bottlenecks and addressing the root cause to increase usability.

Example: the call to the /get-credential-dependencies call (that can be issued against any of the running von-x agents), seems to often take more than 30 seconds to complete, incurring in the default timeout time for http requests. While it may be possible to increase the timeout, it would not be a good solution since taking a very long time to complete the request that will indicate the steps that are required to obtain a specific credential reduces the usability of the system.

In addition to ensuring requests are handled correctly in dFlow, we should investigate the underlying back-end layers (von-x, ToB, Ledger) and identify improvements.

esune commented 5 years ago

Done as part of dFlow #201