Dear all,
We currently respond to a webhook immediately with 200 (ok) and deal with errors afterwards on our own (polling). However, OD seems to resend the events if there is no response. Will this survive a reboot of OD? If so, I would only want to return a 200 response code if the processing was successful.
Is this correct?
With best regards
Joerg
Return Code for Webhook - retention time OD
-
- Posts: 39
- Joined: Sun Feb 27, 2022 2:53 am
Re: Return Code for Webhook - retention time OD
Good afternoon,
Short answer: Yes, they will survive a reboot.
The general flow of our API Events is as follows:
Short answer: Yes, they will survive a reboot.
The general flow of our API Events is as follows:
- Store the current time for the database's server.
- Examine the Subscription.DateTimeStart and use it to query the desired table. We limit batches to 1000 elements.
- Create a payload and send the webhook to your site.
- We receive a response from your site.
- Processing of the subscription stops entirely.
- We will try to send it again after processing all other subscriptions the dental office may have.
- If more than 1000 elements need to be send, we make subsequent payloads and send them.
- When all elements are sent, the Subscription.DateTimeStart is updated to the date stored at the beginning.
-
- Posts: 39
- Joined: Sun Feb 27, 2022 2:53 am
Re: Return Code for Webhook - retention time OD
Thanks for the clarification!
This is very comfortable as is the fact that one can have multiple subscriptions for the same event. Well done and well behaved!
Joerg
This is very comfortable as is the fact that one can have multiple subscriptions for the same event. Well done and well behaved!
Joerg