Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Mysenko committed Jun 23, 2016
2 parents 6c5e8b9 + 3604fab commit 897d812
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Therefore, we will create jobs manually based on SQS payload that arrived, and p
our controller will return a 200 HTTP status and AWS daemon will delete the job from the queue. Again, we don't need to poll for jobs and we don't need to delete jobs - that's done by AWS in this case.

If you dispatch jobs from another instance of Laravel or if you are following Laravel's payload format ```{"job":"","data":""}``` you should be okay to go. If you want to receive custom format JSON messages, you may want to install
(Laravel plain SQS)[https://github.com/dusterio/laravel-plain-sqs] package as well.
[Laravel plain SQS](https://github.com/dusterio/laravel-plain-sqs) package as well.

## Dependencies

Expand Down Expand Up @@ -117,4 +117,8 @@ $app->register(Dusterio\AwsWorker\Integrations\LumenServiceProvider::class);

## Implications

Note that AWS cron doesn't promise 100% time accuracy. Since cron tasks share the same queue with other jobs, your scheduled tasks may be processed later than expected.
Note that AWS cron doesn't promise 100% time accuracy. Since cron tasks share the same queue with other jobs, your scheduled tasks may be processed later than expected.

## Post scriptum

I wrote a [blog post](https://blog.menara.com.au/2016/06/running-laravel-in-amazon-elastic-beanstalk/) explaining how this actually works.

0 comments on commit 897d812

Please sign in to comment.