23
Views
1
Comments
[OIDC Client] Performance issues related to authentication
oidc-client
Reactive icon
Forge asset by João Barata
Application Type
Reactive

Hello,

We have a performance issue on our app using oidc.

Our analysis has concluded that the problem lies in the use of a service action instead of a server action. We found that the data action DoLogin takes approximately 17 seconds to execute with a default service action (Custom_UserCheck), while it takes about 2 seconds if we convert that to a server action. 

Do you have any clue what is causing this?


Server vs Service.png
2023-03-13 10-26-05
Sriyamini

Hey @Joao Marques ,

It appears to be delayed because service actions are performed for performed and network costs, while server actions are run within the same transaction on the server, causing them to occur quickly. Actually service actions call external services which add delays and service actions are run in a separate transaction as opposed to server actions. 

You can do some improvement like adapt the service action by reducing the conversation or filtering the data effectively or If it calls the outer API, check the response time and evaluate the time.

Thanks,

Sriyamini J

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.