Richard,

Using AJAX or even SSI can result in a single page making many multiple
requests for one single page displayed.

I personally do the same thing with web page design as with ILE. If it
will be displayed on more than one page (or on every page, for example a
user's signon status) it because an AJAX or SSI call.

So it's really no problem for one page when displayed loads data from 5
different places. Of course, each of those "calls/reuests" will use it's
first available job.

Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any Cloud
Provider!

On Sat, Mar 4, 2017 at 8:14 AM, Richard Schoen <
Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

Thanks for the education on Ajax also in response to my simple question on
QTEMP.

If the Apache server is set to single-thread then I imagine these Ajax
requests would be stacked and each would wait for the thread to service it
and could possibly time out.

Out of curiousity: For application efficiency why are you making 5 Ajax
calls at once ?

I tend to try to simplify any apps I write to minimize the back and forth
interaction to the back end. I try not to get data until needed and
sometimes cache data app side in a database or local data variables.

I've been writing apps for devices and try to minimize network impact so I
guess you could say I'm more passive than aggressive :-)

Regards,

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

----------------------------------------------------------------------

message: 1
date: Sat, 4 Mar 2017 11:13:05 +0100
from: Henrik R?tzou <hr@xxxxxxxxxxxx>
subject: Re: [WEB400] Question on QTEMP and CGI Jobs

Kevin

well, it may be understod that they share QTEMP since a call to PGMA from
user 1 and thereafter call to PGMB from user 2 running under the same
QZSRCGI shares the same QTEMP that belongs to the QZSRCGI and not PGMA or
PGMB.

PS - I don't think you uses AJAX as agressivly as I, if you fires 4-5
unnested AJAX calls from the browser at the same time it will result in 4-5
QZSRCGI jobs handling the requests, in other word they aren't queued to the
same QZSRCGI job.

Remember that persistence CGI was written way before AJAX where AJAX may
run many independend sockets to the server at the same time.


On Sat, Mar 4, 2017 at 10:42 AM, Kevin Turner <kevin.turner@xxxxxxxxxxxxxx

wrote:

So the even shorter answer to this question "Would there be any way
for two CGI calls at the same time to overlap the QTEMP libs ?"
is
"No!"

HTH


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.