News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell:
Beanstalk, Pheanstalk and Priorities
May 08, 2014 @ 09:47:08

Lorna Mitchell has a quick post showing you how to use the "priority" option that the Pheanstalk library provides when working with a Beanstalk queue.

I've got an application that uses Beanstalkd to queue up messages, and some PHP worker scripts that grab messages from the queue and process them. Messages get added by the web application, but can also be added by cron - and when I add a bunch of messages via cron, I don't want to swamp what the web application is doing! Those cron-added jobs are mostly pretty low priority, generating reports, sending weekly update emails, that kind of thing. Beanstalkd has a concept of priority, so I can create lower priority jobs.

She includes a three line example showing the use of the "LOW_PRIORITY" constant to tell Beanstalk how and when it should handle this particular job. In her situation, where there are multiple smaller jobs rather than larger ones it makes more sense to shift some of the smaller, less important tasks to be executed later.

0 comments voice your opinion now!
beanstalk pheanstalk priority tutorial example

Link: http://www.lornajane.net/posts/2014/beanstalk-pheanstalk-and-priorities

A Cloudy Place:
PHP and Git on AWS Elastic Beanstalk
March 28, 2012 @ 13:53:08

On the "A Cloudy Place" blog there's a recent post about the steps the author ( Shameer) to to get PHP and Git set up on the Elastic Beanstalk service from Amazon.

When Amazon announced Beanstalk's support for PHP I was curious to know what it would look like. So I decided to give it a try. I hadn't used my AWS account for a while, so I had to do some account setup tasks, configuring command line tools, etc. In this article I will explain how to set up a PHP application in Beanstalk from scratch.

He walks you through the entire process (complete with some screenshots) of getting the command line tools set up, creating your first PHP application and connecting it to your git repository. There's no database instructions included because the default EC2 instance doesn't include them. You'll need to refer to these instructions if you need that for your application.

0 comments voice your opinion now!
aws elastic beanstalk ec2 amazon git tutorial



Community Events





Don't see your event here?
Let us know!


install testing developer interview release configure opinion series community introduction refactor language wordpress list threedevsandamaybe framework unittest code laravel podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework