Execution guarantees
An error can occur anytime during the execution of a function. A function might not be executed only once if it failed. The model of execution depends on the type of function.
For example, a simple synchronous HTTP request will be invoked once, at most. This means that the function invocation will be failed and never retried. The caller side is responsible for error handling and the retry strategy on its own.
While asynchronous functions will be invoked at least once, as is the nature of these asynchronous calls, so we need to prepare for a situation that this kind of function will be invoked multiple times. Also, the state to be modified by these functions should be idempotent and robust. For example, we may need to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access