4 ms·
I think the answer is not so easy. For example I would prefer webhooks over /events if the chance of something happening is low. It does not make a lot of sens
by gls2ro 5y ago
I think the answer is not so easy.
For example I would prefer webhooks over /events if the chance of something happening is low. It does not make a lot of sense to keep long pulling when chances of something being return are small.
I think a sane alternative is to have webhooks with ack for example. Where if the client does not ack the push, the API will retry a couple of times with exponential wait time.
Of course if the expectation is to have a lot of events it makes sense to have /events. But somehow I feel /events and webhooks solve different cases or at least as a client I have different expectations.