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

jok3r's avatar
Level 1

Translate Redis funnel to SQS?

Hello, somebody can help me, to understand what is the big difference using SQS or Redis.

I make that function,

$locations->chunk(700, function($locs) {
            foreach ($locs as $location) {
                $key = 'delete_'. $location->id;
                Redis::funnel($key)->limit(1)->then(function() use ($location) {
                    $result = $location->delete();
                }, function () {
                    return $this->release(100);
                });
            }
        });

But now i start to use SQS from AWS, so i don't know how set this action...

$this->job->then(function() use ($location) {
    $result = $location->delete();
})

?? or i only check $this->job? sQS WTF?

0 likes
0 replies

Please or to participate in this conversation.