You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: easy-batch doesn't support Listener class on a single intermidate processor, how to handle error path.
Also for writers, since it already group them in Batch, we can't do much for it
Possible solutions:
just write error path logic inside the normal path business code
use an ErrHandler class
should we use Listener and reply on throwing exps to guide to err path? or should we just use conditions to guide to err path? An: long functions will split, and it will cause return value headache 😫
don't write delegate RecordProcessor class with exp handling. It probably won't work for all scenarios
let writer class implemented in RecordProcessor class, and use Listener to handle exceptions.
This is not a good usage of easy-batch, although it can solve problems easily because with batch writing, we can support writing to DB or cache if we want
Problem: easy-batch doesn't support
Listener
class on a single intermidate processor, how to handle error path.Also for writers, since it already group them in
Batch
, we can't do much for itPossible solutions:
ErrHandler
classListener
and reply on throwing exps to guide to err path?or should we just use conditions to guide to err path?An: long functions will split, and it will cause return value headache 😫RecordProcessor
class with exp handling. It probably won't work for all scenarioslet writer class implemented inRecordProcessor
class, and useListener
to handle exceptions.Created from JetBrains using CodeStream
The text was updated successfully, but these errors were encountered: