Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-537

Connect apps - Asset requests are significantly slower with JWT authentication

    • Minor

      Issue Summary

      We recently migrated some parts of our integration using Asset API requests from basic authorization with email and token to JWT authentication. We detected that requests take a longer time to execute, where in some case we see a significant increase in the response time. For example, the request to get Object type attributes

      https://api.atlassian.com/jsm/assets/workspace/:workspaceId/v1/objecttype/:id/attributes

      with JWT token authorization, it takes starting from 500ms and more, repeated calls are around 500ms as well.
      with basic authentication, it takes less than 500ms, and if repeated calls they will be even less than 200ms.

      Steps to Reproduce

      1. Use JWT and Basic authentication to invoke the Asset REST API
      2. Compare the time taken to make the request using Basic and JWT authentication.
      3. The JWT call takes more time than the Basic authentication call.

      Expected Results

      JWT authentication is expected to take a comparable amount of time as basic authentication for the initial request, with subsequent requests taking less time.

      Actual Results

      Using JWT token authorization, the initial request takes at least 500ms, with repeated requests also taking approximately 500ms. With basic authentication, the initial request takes under 500ms, and repeated requests take even less than 200ms.

      Workaround

      No workaround

              Unassigned Unassigned
              0b06f1fccc5a Sreeja Gupta
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated: