amazon web services - Manual acknolwedgement of sqs? -


currently using 'rabbitmq' reliable messaging delivery,we have plan move sqs.rmqp monitors consumers through tcp when consumer of queue goes down automatically re-queue messaging processing.

will sqs monitor slaves? message visible in queue if 1 of consumer goes down while processing message?

i have tried find out same documentation,i not find any.

if 'slaves', mean sqs consumers, no, sqs not monitor consumers queue.

in nutshell, sqs works this:

  • a consumer requests message queue.
  • sqs sends message consumer process , makes message temporarily invisible other consumers.
  • when consumer finished processing message, sends 'deletemessage' requests sqs , sqs removes item queue.
  • if consumer not send deletemessage enough (within configurable timeout period), sqs put message queue automatically.

so sqs doesn't monitor consumers, if consumer requests messages - , nothing them - end in queue processed else.

but if queue doesn't have consumers, sooner or later (14 days max), messages deleted altogether (or sent dead-letter-queue if set up).

it idea setup queue consumers in auto-scaling group, health-check can verify running/processing properly. if instance fails health check, terminated , new instance spun continue work in queue. optionally, can spin instances if size of sqs queue grows meet peak demand.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -