-
Bug
-
Resolution: Unresolved
-
Low
-
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
- Use JWT and Basic authentication to invoke the Asset REST API
- Compare the time taken to make the request using Basic and JWT authentication.
- 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