1 min readSep 27, 2017
Great article. Learning a lot and trying to apply it to my project.
Some questions:
Since you’re storing CONTEXT
outside of the handler, can that be possibly mutated by concurrent invocations on the same container?
Say for example,
- Invocation A arrives (sets the global
CONTEXT
). - Invocation B arrives before Invocation A finishes (this resets the global
CONTEXT
for itself). - Invocation B finishes and returns (uses the global
CONTEXT
). - Invocation A finishes and returns (uses the global
CONTEXT
but by this time, the state ofCONTEXT
is for Invocation B).
Am I misunderstanding something?