unee-t / lambda2sqs

Relays SQL triggered payloads to MEFE via a queue
https://ap-southeast-1.console.aws.amazon.com/lambda/home?region=ap-southeast-1#/applications/lambda2sqs
GNU Affero General Public License v3.0
0 stars 4 forks source link

Categorize errors from MEFE #19

Closed kaihendry closed 5 years ago

kaihendry commented 5 years ago

There are two types of error in our system.

Timeouts / deadlocks / Bad gateway need to return error should be retried. ~500 return error

Bad payloads should not return an error. ~400 return nil but still report the errorString to SQL.

kaihendry commented 5 years ago

This version is running in demo successfully @franck-boullier It's handling the deadlock errors correctly, by retrying.

https://s.natalian.org/2019-05-27/retried.mp4