17. 変更したのは
‣ Your app should respond to the event request with an HTTP 2xx
within three seconds. If it does not, we'll consider the event
delivery attempt failed. After a failure, we'll retry three times,
backing off exponentially.
‣ Events API | Slack
- https://api.slack.com/events-api#responding_to_events
‣ AWS Lambdaのコールドスタート時や翻訳APIの応答を待っていると3
秒のリミットを超えることがある
‣ リミットを超えると送信元で失敗となりイベントが再送されるので、複
数回同じメッセージが翻訳されることになる
17
19. 変更したのは
‣ 翻訳APIは無料で使える枠がありかつ、登録も簡単な
ところの方がありがたい
‣ Microsoft Translator API は無料枠があるが、アカウ
ント登録にクレジットカード登録があり多少面倒
‣ Translator Text API - 自動翻訳 | Microsoft Azure
- https://azure.microsoft.com/ja-jp/services/
cognitive-services/translator-text-api/
19