hutschen / mv-tool-api

Measure tracking tool for the implementation of information security measures in projects
https://mv-tool.readthedocs.io
GNU Affero General Public License v3.0
2 stars 0 forks source link

Slow response speed of JIRA impacts performance of web API #148

Open hutschen opened 1 year ago

hutschen commented 1 year ago

Slow response speeds of the connected JIRA instance affect the performance of the MV Tool. If JIRA is slow to respond, content through the MV Tool API will load slowly or not at all.

The slow response to JIRA requests can have two causes:

  1. the MV tool uses JIRA to authenticate users. This means that every time a request is made, the user is authenticated against the JIRA API. If this request takes a long time, the request in the MV tool will also take longer. 2) For the delivery of some objects (projects, requirements or actions), data from JIRA (projects or issues) must be loaded. If this data cannot be loaded because JIRA is not available, an error message should be displayed in the UI.

The following solutions can help resolve the issue:

  1. authentication is not sent to the JIRA server for every request, but the MV tool uses a lease time. This lease-time should be adjustable in the config.yml and should be set to a value of e.g. 5 minutes by default.
  2. all data that is loaded via an external service should be provided with a status object that provides further information about the object. This object can, for example, indicate that the data could not be loaded due to a timeout of the connection or due to missing permissions. The various statuses can then be displayed accordingly in the UI to inform the user.