AWS SQS message not receive auto

145
December 07, 2018, at 07:30 AM

I am working on aws sqs, send message is successfully but not received message not getting automatically.

Please help me.

require 'vendor/autoload.php';
//require 'aws/aws-autoloader.php';
use Aws\Exception\AwsException;
use Aws\Sqs\SqsClient;
$queueUrl = "";
$client = SqsClient::factory(array(
    'credentials' => array(
        'key' => '', //use your AWS key here
        'secret' => '', //use your AWS secret here
    ),
    'region' => 'us-east-1', //replace it with your region
    'version' => 'latest',
));
$result = $client->receiveMessage(array(
    'QueueUrl' => $queueUrl,
    'MaxNumberOfMessages' => 10,
));
foreach ($result->get('Messages') as $message) {
    echo "<pre>";
    echo htmlentities(print_r($message['Body'], true));
    echo "</pre>";
    echo "<hr />";
}
READ ALSO
Polylang Language Detection redirect with 301

Polylang Language Detection redirect with 301

I am using polylang plugin for wordpress multi language siteAs per SEO guidelines, home page www

259
What is the“&#39;condition&#39;=&gt;&#39;project_id=:projectId&#39;,”?what is the meaning of “:”?

What is the“'condition'=>'project_id=:projectId',”?what is the meaning of “:”?

I don’t know What is the“'condition'=>'project_id=:projectId',”?what is the meaning of “:”? In another word why we should put the “:” in front of the projectIdthe code is as below

103
How to use result array of a query in another query in Mysql+Node JS?

How to use result array of a query in another query in Mysql+Node JS?

I want to use the result of first query(sql1) in second query(sql2)The result of first query(sql1) is getting in

127