Lambdaの多重起動
同期は必ず1回の呼び出し
非同期は必ず1回以上の呼び出し
と、↓の資料に書いてあったけど、記事中のリンク先の記述が変わっていてわからなくなっている、、、。
↓の資料には
AWS Lambdaで保証しているのは最低1回実行することであり1回しか実行しないことではない
DynamoDBを利用するなどして冪等性を担保する実装を行うこと
と書かれている
↓やっぱり同期なら必ず1回の呼び出しっぽい
If you use the RequestResponse (synchronous) invocation option, the function will be invoked only once. If you use the Event (asynchronous) invocation option, the function will be invoked at least once in response to an event and the function must be idempotent to handle this.
(Github上のドキュメントではこうなってるのに開発者ガイドの該当部分にそれらしい記述がないのはなんでなんだ、、、。)