Extending existing RPG investment to other platforms
Posted: Fri Sep 09, 2022 1:18 pm
We have a significant investment in existing RPG programs that encapsulate a lot of business rules/logic. We are looking for a way to extend our RPG programs and making them available to other solutions. For the purpose of discussion, let use a rating engine as an example.
We would like to invoke the existing RPG rating engine program when a web facing solution requests a rate.
We currently have a solution in place where a middleware component receives the web API JSON and re-formats the data passing it as parameters to the RPG program. The RPG rating program calculates the rate and then returns the rate details via a parameter back to the middleware component. That component then reformats the result set received into JSON and provides that as the response to the calling web API. This integration pattern has been in place since 2006 and has been reliable and fast.
However, we are now looking to make more legacy RPG programs available to the web. We have been asked to revisit this integration pattern to validate if a better way to execute exists. Appreciate any insights.
Note our IBM box is running on V7R1M0 of the O/S.
We would like to invoke the existing RPG rating engine program when a web facing solution requests a rate.
We currently have a solution in place where a middleware component receives the web API JSON and re-formats the data passing it as parameters to the RPG program. The RPG rating program calculates the rate and then returns the rate details via a parameter back to the middleware component. That component then reformats the result set received into JSON and provides that as the response to the calling web API. This integration pattern has been in place since 2006 and has been reliable and fast.
However, we are now looking to make more legacy RPG programs available to the web. We have been asked to revisit this integration pattern to validate if a better way to execute exists. Appreciate any insights.
Note our IBM box is running on V7R1M0 of the O/S.