Performance concern about execute N Rest API calls to get variables

Hi All,

We are creating a UI which shows to the users all tasks they were assigned in Camunda, we are executing the following Rest API calls:

  • Call 1) To get the list of tasks assigned to the user by user id
  • Call 2) To get the list of tasks assigned to the user by group id
  • N Calls) To get the variables detail of each task

Once we have everything then we return the response to our customized UI.

Our concern is about degrading the performance due to execute N Rest API calls every time the user requests for the task list.

Is that a correct way to do this? Is there any other way to show the list of tasks and detail about the variables of each one on a single screen?

Thanks a million!
Jesús