Suppose my task's process method fails for some reason. Say the problem is not in the message but is attributable to some external condition: a service is down, a network partition.
What is the best way to handle such failures? Currently I am just what seems natural and writing the failures to a topic. Is there a better way? Thank you, Dmitry