Edge service / Lua script

I’m looking to implement an edge service and split a single request into multiple calls (e.g. split a large json with lua script). What’s the best way to implement this kind of pattern with Istio ?

Thx
AB