NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on December 18, 2021, 03:39:52 AM

Title: Improving response time for NetWebServiceMethod
Post by: Thys on December 18, 2021, 03:39:52 AM
Hi,

My API app constantly has a 500ms overhead on any HTTP call. This 500ms does not include the work that is done in the ServiceMethod routine. A simple call then ends up taking up to 600ms to respond. I played around with the performance options on the NetWebServer template, but nothing there has the effect to change the response time.

I'm using NT 11.51.

Thys
Title: Re: Improving response time for NetWebServiceMethod
Post by: Alberto on December 18, 2021, 05:52:03 AM
Hi,
Any embedded code in Webhandler?
What database?
Local or remote database?
Cheers
Title: Re: Improving response time for NetWebServiceMethod
Post by: Thys on December 18, 2021, 10:28:26 AM
Michelis,

I checked the timing of the code in the webhandler, negligible and less than 100ms (shows 0 when using duration with CLOCk).

The simple call I'm referring to, doesn't make any calls to the local MSSQL database. It just returns a value from a simple variable. So with minimal code in the ServiceMethod routine, there is always a minimum response time of 500ms.

Thanks
Title: Re: Improving response time for NetWebServiceMethod
Post by: Alberto on December 20, 2021, 03:37:23 AM
Thys,
Did you try with a NTWS example?
Same problem?
Title: Re: Improving response time for NetWebServiceMethod
Post by: Bruce on December 20, 2021, 06:53:51 AM
Hi Thys,

are you testing on the same machine? over a LAN? a WAN? the internet?

Cheers
Bruce
Title: Re: Improving response time for NetWebServiceMethod
Post by: Thys on December 20, 2021, 08:03:15 AM
Hi Bruce.

It's all on my laptop.

Thanks
Title: Re: Improving response time for NetWebServiceMethod
Post by: Thys on December 20, 2021, 08:04:21 AM
Thys,
Did you try with a NTWS example?
Same problem?

I haven't tried yet. I'll do so.

Thanks