-
Notifications
You must be signed in to change notification settings - Fork 718
Description
The feature, motivation and pitch
I'm trying to slim down the data sent between Conductor and microservices my workflow uses. I would like to prevent Conductor from sending certain parameters that don't have a value. It currently sends them with a null value.
Alternatives
I've considered a JavaScript or possibly even a JQ task right before that removes certain/all keys with null values. I don't like having an extra task associated with every task that needs this since it increases the size of the workflow and adds extra latency to do a relatively simple task.
Additional context
I am specifically using HTTP Tasks, but I imagine this is beneficial for other task types as well.
The microservices have optional input parameters that come from optional output parameters of a previous microservice/task. Since they don't always exist, there are extra keys in Conductor's request with null values. While it's not a huge deal for a single parameter for an occasional request, if you get enough of these parameters, or make enough requests, the increase in unnecessary data transfer can start to incur material costs, especially with cloud ingress/egress.