English 中文(简体)
SQS queue与一个 php 书写
原标题:Processing items in SQS queue with a php script

我的情况:

我有一份有原始数据的文字,在数据库中予以保存,然后获得该物品,然后将其交给阿马松SQS。

I have another script (written in PHP) that retrieves the raw data from the db and processes it. (it takes a couple of minutes usually.

The missing part is how to retrieve the messages from SQS to be processed. The frequency of new data to process varies, it can go from a few items per hours to dozens of items per minute.

一种办法是开展一项艰巨的工作,即查询SQS新电文并推出处理稿(必须在别的S.QS-S-查询和书写,而不是Sphp.Adhur或Rub)。 问题在于,它非常缺乏效率,在高负荷阶段,它会不堪重负,在平静阶段,它将无用地发出呼吁。

我想得到的是某种多读的听众,他们会收到信息并处理这些信息。 一项重要要求是及时处理原始数据,在收到数据后几分钟。

关于最佳解决办法的任何想法? SQS是否适合这项任务? 如何最有效地倾听和处理问题?

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签