5. Circuit breaker

What is circuit breaker?

A pattern for limiting the amount of requests to a dependency that is having issues.

It is used to detect failures and encapsulates the logic of preventing a failure from constantly recurring.

📘

SHOPLINE Circuit Breaker - App

Circuit breaker will be triggered when there are more than 1200 errors per app per minute, continuously for a duration of 5 minutes.

System will wait 3s for response. Error will be counted if system fail to receive response within timeframe or the http code response is not within 200-299.

Supported Scope

Circuit breaker will be triggered not only in App webhook but also merchant webhook

📘

SHOPLINE Circuit Breaker - Merchant webhook

System will wait 15s for response. Error will be counted if system fail to receive response within timeframe or the http code response is not within 200-299.

Open Platform reserves the right to update these parameters and system behaviors from time to time. Please reminded that App is suggest to response to the webhook ASAP.


🚧

Circuit breaker is triggered. Who will be notified? What should we do?

Circuit breaker notifications

Org. owner & App emergency contact will receive circuit breaker email notification

How to Resume Webhook?

Please make sure that the service receiving webhook is functioning normally and then you can click “Resume Now” in Webhook Section

Select App > Webhook

Replay event

To get back the webhook during suspension periods, you can go to “webhook log” page to perform “Resend” operation.

Select App > Webhook > Webhook log