I know zero of AWS and am asking for a friend who is a novice Node.Js coder and getting a little out of his depth.
He sends an HTTP request then calls a function which will take some time to execute.
If the HTTP response arrives while the long function is still executing:
- is the function interrupted and the HTTP call-back invoked?
- does the function complete before the callback is executed?
- is there multi-threading so that they run in parallel?
Cooperative, pre-emptive or multithreaded? Which is is it?