←back to thread

115 points nonfamous | 1 comments | | HN request time: 0.208s | source
Show context
ceejayoz ◴[] No.44567373[source]
I saw this come up on /r/aws a few days back.

This response seemed illuminating:

https://www.reddit.com/r/aws/comments/1lxfblk/comment/n2qww9...

> Looking at (this section)[https://will-o.co/gf4St6hrhY.png], it seems like you're trying to queue up an asyncronous task and then return a response. But when a Lambda handler returns a response, that's the end of execution. You can't return an HTTP response and then do more work after that in the same execution; it's just not a capability of the platform. This is documented behavior: "Your function runs until the handler returns a response, exits, or times out". After you return the object with the message, execution will immediately stop even if other tasks had been queued up.

replies(2): >>44567415 #>>44567675 #
mcflubbins ◴[] No.44567415[source]
If this is the case (it might very well be) I do at least find it odd that no one on AWS' side was able to explain this to them.
replies(6): >>44567446 #>>44567457 #>>44567464 #>>44567509 #>>44567669 #>>44569284 #
1. semiquaver ◴[] No.44567457[source]
Based on the way the document is written, it seems very likely that several people did realize exactly what the misunderstanding was and try to explain it to them.