Wide question with obviously a lot of options and lot of context and solution area, but being precisely so wide, let's stick to the two options given, assuming you are talking about JSON over HTTP RPC style API.....
I'll pick the first, less moving parts, efficient, easier to debug, and pretty performant if Apache straight to RPG. And - if one so desire - there are native third party products for IBMi that offer the whole stack and related orthogonal services (security, accounting, monitoring...).
The second doesn't add any visible value to me, the cost of such dependency is much higher than the value given.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.