Hi.
The transformation from JSON to XML to JSON again seems heavier than transforming with javascript.
But due the nature of tranformations involves a series of variables, you will only be sure making some tests and measuring the load on gateway.
Follow some inputs from documentation:
https://docops.ca.com/ca-api-gateway/9-4/en/learning-center/thinking-in-policy/policy-performance-optimization#PolicyPerformanceOptimization-DataTransformation------------------------------
Sr. Consultant Services
HCL Enterprise Studio
------------------------------
Original Message:
Sent: 08-07-2019 02:53 AM
From: Antonio Navarro
Subject: XSLT vs Javascript
Hi,
I would like to know which is the most reliable way to make a transformation. In my team we are looking forward to make JSON to JSON tranformations only. As per last 9.4 API Gateway we can achieve this using Javascript or transforming it to XML and apply XSL stylesheets. My question is about which way is more suitable in terms of performance? Because, from my perspective, Javascript is working over a Java layer which I think will not be very high performance but with XSLT you need to transform to XML, apply XSL and transform back. So which one would you use?
Thank you in advance,
Antonio