3 ms·
TFA addresses this by suggesting long-polling as an option rather than the only way to request `/events` > In our integration with Stripe, it would be neat if
by airstrike 5y ago
TFA addresses this by suggesting long-polling as an option rather than the only way to request `/events`
> In our integration with Stripe, it would be neat if we could request /events with a parameter indicating we wanted to long-poll. Given the cursor we send, if there were new events Stripe would return those immediately. But if there wasn't, Stripe could hold the request open until new events were created. When the request completes, we simply re-open it and repeat the cycle. This would not only mean we could get events as fast as possible, but would also reduce overall network traffic.