Hi Del,
I total agree with Tim AND with Juan.
The answer is like it is in many situations: It depends.
If you are running 5-10 Requests per Minute, then IWS is not a bad solution right now. It gets better every year.
If you are running 500 Requests (or more) per Minute (which more and more of my customers do) then you should really look for alternatives because in this case you need normally a much faster POWER System with much more RAM and then the argument that IWS is for free is not valid.
Why?
Because IWS is based on Websphere and Java. Java needs resources - a lot of resources. Much more than the ILE environment does.
Another thing you should think about is the effort of creating, publishing and maintaining your Webservices.
With IWS you have a lot of additional work to do which you don't have for example if you use noxDB in combination with IceBreak.
With IceBreak you have an Application Server which is totally created within the ILE environment and written in RPG and C so you need not so much resources (CPU and RAM) which means you can run a lot of requests per Minute with the same machine you already have.
Of course there are many other way in the meantime and all of them have their advantages and disadvantages so you need to compare and always think about what you really want and need to do.
No matter how you will do it: Webservices are better in most cases than direct access to the database and from our experience (I'll do Webservices on IBM i and other platforms since 2003) they are faster right now.
Go on and go on on IBM i!
------------------------------
Markus A. Litters
------------------------------
Original Message:
Sent: Tue October 01, 2024 12:34 PM
From: Juan Manuel Alcudia Peñas
Subject: IWS Performance
Hello,
Rest services with IWS will be better than JDBC. And probably converting the programs to RPG will be faster than SP. I don't use IWS because I think there are better and faster solutions but it's still a valid tool and it became better with new versions.
------------------------------
Juan Manuel Alcudia
CD-Invest
IBM Champion
President of Common Europe
Original Message:
Sent: Mon September 30, 2024 03:13 AM
From: Del Abalos
Subject: IWS Performance
Hi @Juan Manuel Alcudia Peñas,
I am just looking around about IWS Performance and I saw this post of yours in 2022. Is this still your position to date?
I am actually evaluating IWS as an option in migrating our DB2 Stored Procedures (some are pure SQL and some are externally calling RPG programs). They are currently invoked by our MW using JDBC connections. The plan is to initially expose them as a Rest Service so that MW (acting as rest client) can invoke them via HTTP instead of JDBC. I am also thinking of having those SP converted to RPG. So that RPG shall be exposed directly as Rest API.
Best regards.
------------------------------
Del Abalos
pasay city AL
63-906-246-7417
Original Message:
Sent: Thu July 07, 2022 10:38 AM
From: Juan Manuel Alcudia Peñas
Subject: IWS Performance
In my own opinion I don't recommend the use of IWS. You can have better performance and more easy to debug services using CGIDEV2 + YAJL or NOXDB.
Even with the latest enhancements on IWS from the last announce I see it like a product to do some testing but not to go to production.
But if you want performance I think that you have to warm up the server, sending some petitions before the real users enter the server as the first petition is always slow.
------------------------------
Juan Manuel Alcudia
CD-Invest
IBM Champion
Original Message:
Sent: Wed May 18, 2022 01:01 PM
From: Amy Vozza
Subject: IWS Performance
What steps can we do to improve performance of IWS? Can you point me to specific configuration or documentation for that? We are finding in testing that running a deployed service via IWS is slower than utilizing ODBC for the same service, and we're hoping to close that gap or at least reduce it. For example, one setting in deploying the service allows for a Trim mode for output fields, and the help documentation specifically states that using None there gives better performance. What other settings in the service deployment or server configuration might help with performance? What other steps can we do to performance tune IWS?
------------------------------
Amy Vozza
------------------------------