I need to update Redis database with flowfiles running on Nifi.
I already wrote custom python script to update redis db and it can be run on ExecuteStreamCommand.
Alternatively, I'm looking for doing the same thing with ExecuteScript and Jython because it is easy to manage the Nifi pipeline.
But according to the following link, it seems Jython can use only pure-python module. Since Redis is written in C language, my guess is I can not simply write script in the ExecuteScript processor.
Import Modules in Nifi ExecuteScript
So how can I update redis database using Jython in ExecuteScript??
Also, in terms of speed, which way (ExecuteStreamCommand vs ExecuteScript) can give better performance??
Because as far as I tried, running python script on ExecuteStreamCommand was faster.