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
How can we easily check if a lambda call was done successfully?
Today all the info is stored in 3 tables
``
``
``
BUT we do NOT have the unique ID for the lambda call that was made, making it difficult to automatically check if a lambda call was successful when done end to end.
We need to alter the DB schema to fix this issue.
The text was updated successfully, but these errors were encountered:
Currently when a payload from UNTE comes into https://github.com/unee-t/lambda2sns it logs into the CloudWatch log group alambda_simple, the mefeAPIRequestId so that it can be queried.
Logs containing mefeAPIRequestId also show the requestID which is the UUID created by AWS to uniquely identify the lambda run.
There is added complexity in https://github.com/unee-t/lambda2sns/blob/master/main.go#L180 to try and relay the outcome of the payload from MEFE to the database. This is accomplished by calling a stored procedure which IIUC populates the 3 tables mentioned above.
This is done because mysql.lambda_async having no way to respond & to avoid looking directly at the logs.
Unfortunately this is error prone if the database is unavailable or if the lambda was somehow terminated. In an ideal world, the microservice or API responsible for changing the state due to the payload instruction could notify what initiated the state change request directly, without lambda2sns getting involved. Or at least have an easy API for the initiator to check the payload has been carried out.
The problem:
How can we easily check if a lambda call was done successfully?
Today all the info is stored in 3 tables
BUT we do NOT have the unique ID for the lambda call that was made, making it difficult to automatically check if a lambda call was successful when done end to end.
We need to alter the DB schema to fix this issue.
The text was updated successfully, but these errors were encountered: