Machine-translated by Google. Questions are authored in English.
Top

Discussion

State whether the following is true or false.
A function should be written so that it holds no state between invocations.

  • A.True
  • B.False
  • C.True only at large scales
  • D.False only at small scales

Answer: A

Any given invocation may land in a fresh environment, and the platform may discard environments at any time. State that must survive belongs in a database, a cache or object storage rather than in the function's own memory.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.