July 2017
Beginner to intermediate
358 pages
10h 54m
English
It is not uncommon for things to go wrong with distributed systems and we should factor this into our software design, in the instance that a valid message can not be processed one standard approach is to retry processing the message, normally with a delay. We can add the message back onto the queue augmenting it with the error message which occurred at the time as seen in the following example:
{ "id": "ABCDERE2342323SDSD", "queue" "registration.welcome_email", "dispatch_date": "2016-03-04 T12:23:12:232", "payload": { "name": "Nic Jackson", "email": "mail@nicholasjackson.io" }, "error": [{ "status_code": 3343234, "message": "Message rejected from mail API, quota exceeded", "stack_trace": "mail_handler.go line 32 ...", ...Read now
Unlock full access