Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Xation's avatar

[Redis] Stripe Webhook almost at the same time. I need to use funnel ?

Hello,

I'm using stripe webhook and a lot of time stripe send webhook in a short time difference (18-01-16 19:54:31 and 18-01-16 19:54:28). So sometime the newest webhook is executed by laravel horizon (redis) before the oldest. So my db is not sync with stripe.

I have to use funnel inside my job ? https://laravel.com/docs/5.5/queues#rate-limiting

Redis::funnel('key')->limit(1)->then(function () {
    // Job logic...
}, function () {
    // Could not obtain lock...

    return $this->release(10);
});

What's for the number 10 inside release() ?

0 likes
1 reply

Please or to participate in this conversation.