eoke09 / EstherFirst_3-15

0 stars 0 forks source link

Refactor delta Lambda to account for new vs previous values for performance increase #25

Open eoke09 opened 4 years ago

eoke09 commented 4 years ago

Currently the delta lambda logic looks solely at the new values being passed in for the DynamoDB changeset (i.e., record.dynamodb.NewImage) and triggering off if certain values are now set. The table has now been updated to send both the original values as well as the new values, so we can determine now not only if a value has been set but if it just changed. This will allow us to not continuously have to rerun the same logic multiple times when it is not needed (e.g., we only want to do some logic one time when we detect the device record has updated its FCM token).