|
Ahh, the joys of NEP-MRT's... Remember NEP-NOP's ?
Tom
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Joe Pluta
Sent: Thursday, June 05, 2008 3:15 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Thinking out loud about a new RPG web framework
Aaron Bartell wrote:
Have a "mother router" program that sits under Apache and all it does isvalue
receives in HTTP requests from the browser and based on a hidden form
(or cookie storing a session ID) it would appropriately "write" thatrequest
to a keyed data queue where a program is waiting for that specificsession
key. Upon receiving the data queue entry, the business logic programkey).
processes the contents of the HTTP post by evaluating the action that was
taken (just like how green screen programming checks for the function
It then determines what to respond with and goes back into a wait stateon
a
data queue "read" (just like waiting on EXFMT). The benefit in this caseis
that all global variables, open data paths, and SQL cursors were able tointeractions.
remain open and stateful as it relates to that specific users
The data queue layer is basically acting as the replacement mechanism forjob
EXFMT.
The issue I had previously is that each web browsing user had their own
on the iSeries which could potentially become burdensome for a publicI'm not going to go too deep into this today, but I am a little hazy on
website with thousands of users coming in.
some specific issues. Let's say you have 100 users doing order entry.
They're all calling the same program. Is there only a single instance
of this program? Or is there one per user? If it's the former, then
that program will have to restore state based on the session ID for
every request. This is what we had back in the days of NEP-MRT CCP, and
it's *not* a trivial task, especially as the programs grow.
If, on the other hand, there is one job per session, then why bother
with the mother router? In fact, let each HTTP session have its own job
and now we're back to my architecture. In fact, with servlets, we just
use the toolbox to create a connectin, and the job we use is the
QZRCSRVS job.
There is the issue of scalability for large sites, but the majority of
those sites can probably use a non-persistent application such as a
catalog right up until the time when they need to actually do an order -
which is when they need to log in and fire up the RPG program, which is
when you would establish a support job.
Joe
--
This is the Web Enabling the AS400 / 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.
--
This is the Web Enabling the AS400 / 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 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.