January 2020
Intermediate to advanced
640 pages
16h 56m
English
One of the simplest strategies at our disposal involves the introduction of a mechanism for collecting and accumulating all errors emitted by any of the pipeline components while the pipeline is executing. Once the pipeline detects an error, it automatically discards the payload that triggered the error, but appends the captured error to a list of collected errors. The pipeline resumes its execution with the next payload till all payloads have been processed.
After the pipeline execution completes, any collected errors are returned back to the user. At this point, we have the option to either return a slice of Go error values or use a helper package, such as hashicorp/go-multierror [6], which allows ...