I’m still trying to get the basic flow down here:
So a request hits my API gateway. Where do I define the model? Does the gateway deserialize the request and validate the body is valid per the endpoint definition or is that the job of the lambda? Then that lambda puts the event into Dynamo or on a Kenisis stream?
Lets say I’ve got a request CreatePurchaseRequest
when would I go API Gateway > lambda (validate request and save) > DynamoDB > lambda (send e-mail. triggered by row insert)
versus
API Gateway > lambda (validate request and put on stream) > Kinesis > DynamoDB and email lambda both subscribe to it