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
Hello, I have questions about the usage of lambda-powertools-dynamodb-client:
When a record is modified, shouldn't there be "context" attribute in the NewImage?
I have examined the logs of the lambda that are triggered by the Stream, and I cannot get the latest "context" directly from the received event. In order to do that, I have to execute a "get" request to the said record. Am I missing something (configurations, etc.) or is this actually the appropriate/correct way to do it?
How to handle multiple loops that update a record at the same time?
I have a case when a record is updated by more than one loop at a moment. I am expecting that there will be multiple maps inside the "context" in the said record, that can be extracted by the loops using the correlation id, respectively. However, it only stores a map, and the values associated with a loop are overwritten by the other loop. Do you have advice regarding this matter?
Thank you for your assistance.
Additional Data
Which powertool package are you using?:
@dazn/lambda-powertools-dynamodb-client
Questions
Hello, I have questions about the usage of lambda-powertools-dynamodb-client:
When a record is modified, shouldn't there be "context" attribute in the NewImage?
I have examined the logs of the lambda that are triggered by the Stream, and I cannot get the latest "context" directly from the received event. In order to do that, I have to execute a "get" request to the said record. Am I missing something (configurations, etc.) or is this actually the appropriate/correct way to do it?
How to handle multiple loops that update a record at the same time?
I have a case when a record is updated by more than one loop at a moment. I am expecting that there will be multiple maps inside the "context" in the said record, that can be extracted by the loops using the correlation id, respectively. However, it only stores a map, and the values associated with a loop are overwritten by the other loop. Do you have advice regarding this matter?
Thank you for your assistance.
Additional Data
Which powertool package are you using?:
@dazn/lambda-powertools-dynamodb-client
Which version are you using?:
1.28.1
Middy version you're using:
0.36.0
Operating System:
AWS Lambda / NodeJS
Logs:
Related to the question 1
The text was updated successfully, but these errors were encountered: