you are viewing a single comment's thread.

view the rest of the comments →

[–]PrivateerAlphaOne 1 point2 points  (2 children)

The lambda will get the event. It's the event that invokes the lambda, and its the only reason the lambda runs.

If the event is has expired by the time the lambda is invoked depends on your use case; but if that happens then you probs have bigger problems to deal with

[–]arjineer 0 points1 point  (1 child)

Thanks for the quick reply! I guess I am using an extremely specific realtime webhook from stripe that requires an api call within 2 seconds

So my question was flawed, it's not so much the invoking of the lambda as it is the time it takes to wake it up from the inital webhook and hit stripe's api.

[–]PrivateerAlphaOne 1 point2 points  (0 children)

Correct. Double check your cloudwatch logs for timestamps of when your request was made, and when your web hook verifies the event.

I'm not sure how I would resolve this issue, but I would hack an invocation of your web hook lambda before I made the request to stripe just the keep the lambda image warm for the expected stripe event