O'Reilly logo

Laravel Application Development Blueprints by Halil İbrahim Yılmaz, Arda Kılıçdağı

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a queue system for basic e-mail sending

Queues, which are featured in Laravel 4, are one of the best features that come with the framework. Imagine you have a long process, such as resizing all images, sending mass e-mails, or mass database operations. When you process these, they will take time. So why should we wait? Instead we will put these processes in a queue. With Laravel v4, this is quite easy to manage. In this section, we are going to create a simple queue and loop through the e-mails and will try to send an e-mail to each subscriber using the following steps:

  1. First, we need a queue driver for our project. This may be Amazon SQS, Beanstalkd, or Iron IO. I chose Iron IO because, currently, it's the only queue driver that supports ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required