In our initial image processing workflow using Netflix Conductor, we initially built a workflow that takes one image, resizes it and uploads it to S3.
In our 2nd post, we utilized a fork to create two images in parallel. When building this workflow, we reused all of the tasks from the first workflow, connecting them in a way that allowing for parallel processing of two images at once.
In both of these workflows, two tasks are reused:
upload_toS3. This is one great advantage of using microservices - we create the service once, and reuse it many times in different ways.
In this post, we'll take that abstraction a step further, and replace the tasks in the two forks with a
SUB_WORKFLOW. This allows us to simplify the full workflow by abstracting a frequently used set of tasks into a single task.