Home > Back-end >  What happens to the response sent by a lambda function back to the kinesis stream that triggers it?
What happens to the response sent by a lambda function back to the kinesis stream that triggers it?

Time:11-18

In my architecture:

producer -> AWS Kinesis Stream -> lambda function -> MongoDB Atlas

What happens to the status code and data sent back from the lambda function to the kinesis trigger? Will the kinesis send it back to the producer?

CodePudding user response:

No this is not possible. See AWS documentation for details. The kinesis trigger reads the response from the lambda and performs actions depending on what has been defined. The producer is not automatically notified.

What you can do is to define a On-failure destination which is using a i.E. an SQS queue. The producer might listen on that queue and handle failures

  • Related