Dec 11, 2019
0
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?
Please or to participate in this conversation.