Aug 11, 2022
Hi Enrico, thanks for the question.
I used an additional Lambda because I wanted to separate responsabilities in the service. The first Lambda should only check if the circuit is open or not and send back the response to the client. The second Lambda will take care of adding an item in Dynamo if needed.
I hope it makes sense.