|
The whole idea of the IBM i is a database is a "jack of all trades"server. The data request can come from anywhere. RPG, Java, PHP, JSP,
it's unrealistic for 99% of shops with existing infrastructure.
term.
<Rob>I am most interested in what gives me the best bang for the long
good
My take...
Triggers obviously will catch anything and everything. This can be a
thing depending on whether you have issues with many apps all doingmore
INSERT/UPDATE/DELETE actions against the same table. It also has the
complicated infrastructure (two languages, two environments (PASE/ILE),have
more complicated debugging, more complicated deployment, etc). If you
A LOT of applications inserting/updating that you don't have control overa
then this can be a good approach and worth the pain. If you do NOT have
lot of apps inserting/updating then this approach is overkill (IMO) andcan
instead be organized in your PHP code.Aaron,
Even 10yrs down the road you can make it so rows are only inserted via a
REST call to PHP. If you have apps that are doing so much inserting that
they need crazy performance and the REST PHP is too slow then you need to
ask yourself why that other application isn't written in PHP (assuming it
is in-house).
I guess at the end of the day I am just not sold on the "RPG in the DB"
approach because it slows things down so much (aka missed deadlines).
Aaron Bartell
litmis.com - Services for open source on IBM i
Am I understanding that you're promoting the idea of limiting updating
tables (insert, update, delete) to only a REST call to a PHP app (proxy) as
a BETTER solution to putting all business rules at the DB level using
triggers?
We can never assume when or where a table update will come from or expect
to "control" it. The whole idea of the IBM i is a database is a "jack of
all trades" server. The data request can come from anywhere. RPG, Java,
PHP, JSP, Ruby, web service, bluetooth, punch card....
Now, while I think agree that the trigger solution would work if
implemented properly, it's unrealistic for 99% of shops with existing
infrastructure.
But, I think the idea of even suggesting you should limit DB updates to
just one "pipe"... well, I'll say it... dag nabbit... unconstitutional. :)
You can't "make it so rows are only inserted via a REST call to PHP".
Brad
www.bvstools.com
--
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 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.