如果应用程序崩溃,Outlook REST API Webhooks 订阅重试

Outlook REST API Webhooks Subscription Retry if Application has Crashed

我想使用 Outlook REST API webhooks/订阅来更新我的应用程序中的日历事件。如果我的应用程序关闭/崩溃或发送 500 错误,我无法在文档中找到任何关于 Outlook API 是否会重试发送通知的信息。我知道 Google API 使用指数退避来重试发送。 Outlook 会做类似的事情吗?

谢谢, 亚当

是的。来自 Microsoft Graph documentation

When the subscribed resource changes, the webhooks facility sends a notification to your notification URL with the following payload. The notification endpoint must send a response of 200 or 204 with no response body within 30 seconds otherwise the notification attempt will be retried at exponentially increasing intervals. Services that consistently take 30 seconds or more may be throttled and receive a sparser notification set.