Reliability tips

Various delays can occur on Internet and packets may not arrive instantly. Our service may also respond with some delay. A little preparation will help ensure that events are delivered reliably.

Set Request Timeout

# set request timeout to 10 seconds
curl -m 10

Add retries

# make 3 retries
curl --retry 3

Make asynchronous requests and handle exceptions

When sending events from your code, you'll want to send them asynchronously and non-blocking so that the basic logic of your application runs regardless of whether the event reaches our server.

It would not be superfluous to add a network error handler to your code and implement a retry in case of network errors.