NetTalk Central

Author Topic: Improving response time for NetWebServiceMethod  (Read 5530 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Improving response time for NetWebServiceMethod
« 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Improving response time for NetWebServiceMethod
« Reply #1 on: December 18, 2021, 05:52:03 AM »
Hi,
Any embedded code in Webhandler?
What database?
Local or remote database?
Cheers
-----------
Regards
Alberto

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: Improving response time for NetWebServiceMethod
« Reply #2 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Improving response time for NetWebServiceMethod
« Reply #3 on: December 20, 2021, 03:37:23 AM »
Thys,
Did you try with a NTWS example?
Same problem?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Improving response time for NetWebServiceMethod
« Reply #4 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

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: Improving response time for NetWebServiceMethod
« Reply #5 on: December 20, 2021, 08:03:15 AM »
Hi Bruce.

It's all on my laptop.

Thanks

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: Improving response time for NetWebServiceMethod
« Reply #6 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