REST API very slow due too long "session wait" times

Pablo Beltran
Tera Contributor

Hi,

 

Calling to REST API end points is very slow in my dev instance.

 

According to the Session Debug Log view it is caused by too long "session wait " times.

 

In the example below it's +11 seconds.

 

pbeltranl_0-1675527871830.png

 

This happens very often and regardless the specific REST API end point called from my widget.

 

I've also tried alternative dev instances, but it occurs in all of them (Tokio)

 

How can it be resolved?

 

Regards,

Pablo

5 REPLIES 5

Sai Kumar B
Mega Sage
Mega Sage

@Pablo Beltran 

Can you explain in detail how, where, and why you're hitting the endpoint? So that one of the community members can suggest you alternate solution to improve the API performance.

Community Alums
Not applicable

Hey Sai,

we surely need what your REST API endpoint is - OOB one or SRAPI (scripted) ?

Also - how big is your payload ?

Pablo Beltran
Tera Contributor

I just figured out the problem: it was caused by a server script delaying any client interaction, including client calls to the REST API.

@Pablo Beltran how did you figured out the problem? where can we check that? i am also facing similar problem in my dev instance.