PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Which is faster? AWP pages or REST service
Which is faster? AWP pages or REST service
Débuté par Kenny, 04 oct. 2018 09:44 - 4 réponses
Posté le 04 octobre 2018 - 09:44
Hi All,

I have a taxi Mobile Data Terminal (WinCE) using HTTP Request to a WebDev backend.
Currently 300 terminals connecting to the WebApp Server running AWP pages. The request response is slow (10sec).

I am wonder if I move the AWP codes to a REST service, will the process be faster?. Will the memory footprint be smaller for each process. There are many instance of WD220Session.exe and WD220AWP.exe in the task manager right now.

Need help on this as my system will ram up soon with more taxis. Thank you.

Kenny
Posté le 04 octobre 2018 - 12:12
Hi Kenny,

On 10/4/2018 1:44 AM, Kenny wrote:
Hi All,

I have a taxi Mobile Data Terminal (WinCE) using HTTP Request to a
WebDev backend.
Currently 300 terminals connecting to the WebApp Server running AWP
pages. The request response is slow (10sec).


That is not normal.

I am wonder if I move the AWP codes to a REST service, will the process
be faster?. Will the memory footprint be smaller for each process. There
are many instance of  WD220Session.exe and WD220AWP.exe in the task
manager right now.


No... the rest webservive is a wrapper provided by pcsoft but is doing
exactly the same thing than an awp page. there will be no speed difference.

Your problem is coming from something else. Either you are passing too
much data back and forth, or your server is too slow/small, or it is
badly configured (cache, DB configuration, pre-loaded sessions, Server
used for other things, data access badly coded, etc.), or your server
bandwidth is insufficient...

In order to find where the problem is coming from, the first thing to do
is to find how much time is spend in transport and how much is spend on
the server, in the processing phase...

You can do that by adding traces in a file at the very beginning and at
the end of the code run on your server. If, by example, a complete
exchange is 10 sec and the processing time on your server is 8.5
seconds, you know that's where you have to look.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on http://www.fabriceharari.com


Need help on this as my system will ram up soon with more taxis. Thank you.

Kenny
Posté le 05 octobre 2018 - 01:12
Thanks for the reply.

I've ported some functions to REST. Yeah, no speed improvement.
Bottleneck seems to be the CPU (8 core) running VM which is hitting like 90-100%.
Will increase the CPU resources next week.

We have 300 taxis now, will hit 2000 by Jan. Customer is concern about the slow comms :)

I'll like feedback from anyone having similar deployment situation. What is your hardware configuration like ?.

Thank you

Written with WB22





Posté le 05 octobre 2018 - 17:53
Hi Kenny,

I have been using replicated solutions for a long time (see
wxreplication on my web site)...

So, when you are saying that the bottleneck is your CPUs and you are
going to increase the hardware, I'm thinking that the bottleneck is your
processing code that is not optimized and you should work on that...

But maybe it's just me

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on http://www.fabriceharari.com


On 10/4/2018 5:12 PM, Kenny wrote:
Thanks for the reply.

I've ported some functions to REST. Yeah, no speed improvement.
Bottleneck seems to be the CPU (8 core) running VM which is hitting like
90-100%.
Will increase the CPU resources next week.

We have 300 taxis now, will hit 2000 by Jan. Customer is concern about
the slow comms :)

I'll like feedback from anyone having similar deployment situation. What
is your hardware configuration like ?.

Thank you

Written with WB22







Posté le 06 octobre 2018 - 02:09
Hi,

Thanks for the advise. Had request hosting to increase CPU core and will work on optimising the codes too.