Get a stream of events by polling, without having to set up a webhook endpoint.
In addition to receiving webhooks to your HTTP endpoints or connected applications like Slack, you can now also poll an endpoint to get all of the events in real-time and a consistent order.
While webhooks are a great way to receive notification of events, there are situations where polling for events is preferred. For example, when testing locally it’s much easier to poll for events than exposing a public HTTP endpoint. Another example is if you don’t care about getting certain events in real-time and prefer getting them in a batch at the end of the day, you can use the polling endpoint to ingest event history when you’re ready.
Both is goodConsider combining webhooks (pushing) and polling (pulling). You can, for example, use a webhook to act as a trigger to fetch from the polling endpoint. Or use the polling endpoint(s) periodically throughout the day to always have your events streamed in a first-in-first-out order (which is difficult to guarantee with webhooks.)
Start by creating an endpoint from the Webhooks page in your Straddle dashboard, only this time, select Polling Endpoint as the type.
As with regular webhook endpoints, you can control which event types and channels you want to receive.