Tuesday, February 28, 2017

Laravel multiple servers working with AWS queue

I have laravel application running in two servers (using a load balancer) and I'm wondering what happens if I put a job in a AWS SQS queue and both servers are subscribed to the queue.

  • Is there any chance that the job will be processed more than once?
  • Is there any way to setup things so the same server that put the job in the queue handles the job (think file uploads where the file is stored in disk first).

Any experience/tips/advice with this kind of setup is appreciated.




via scrubmx

Advertisement