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

Oh Dear Blog:
How to size & scale your Laravel Queues
Nov 02, 2018 @ 18:17:03

On the "Oh Dear!" service's blog there's a recent post covering the use of queues in a Laravel application and how to size and scale them to most effectively use the resources you have.

Laravel offers a convenient way to create asynchronous background tasks using its queues. We utilize those heavily at Oh Dear! for all our monitoring jobs and in this post we'll share some of our lessons learned and what we consider to be best practices.

The post starts out with an introduction to queues and their handling in Laravel applications, pushing jobs into workers to be executed. While a simple single-worker queue can handle a decent amount of work, problems can arise as the work grows larger. He mentions splitting up the work as a potential solution and defines the differences between "fast" and "slow" jobs to act as a dividing line for the queues. He also makes the suggestion of single-purpose queues based on types and, finally, mixing in the idea of a better user experience through immediate feedback.

tagged: size scale laravel queue division tutorial

Link: https://ohdear.app/blog/how-to-size-scale-your-laravel-queues

Stoimen Popov's Blog:
PHP Performance: Bitwise Division
Jan 06, 2012 @ 15:26:38

Stoimen Popov has a new post to his blog today comparing the performance of bitwise division versus the normal "/" division operator.

Recently I wrote about binary search and then I said that in some languages, like PHP, bitwise division by two is not faster than the typical "/" operator. However I decided to make some experiments and here are the results.

According to his results using the bitwise method is slightly faster, but you'd only really notice it when working with large sets of data (like his example using 10,000,000). The code to run his benchmarks is included in the post.

tagged: bitwise division benchmark compare operator

Link:

Chris Hartjes' Blog:
Doing RADAR in CakePHP
Apr 12, 2007 @ 15:21:00

Chris Hartjes demonstrates how to get the concept of RADAR (RESTful Application, Dumb-Ass Recipient) up and working with a simple CakePHP application.

Okay, time for some code samples to boost traffic to my site. In a previous posting I talked about the idea of RADAR, or RESTful Application, Dumb-Ass Recipient. So, wanting to see if I could put it into use, I decided to do the following for a new application: Have the core of the application provide data via a REST service, For the web part of it, create controller / action pairs that call the REST service and pass the output onto the views.

There's four code examples included in the post:

  • Defining the IndexController for the app
  • Creating the results, standings and schedule methods in the controller
  • Rendering the XML for the response and for the standings and for the standings for a particular division (two code blocks).

tagged: cakephpframework radar rest interface division standings cakephpframework radar rest interface division standings

Link:

Chris Hartjes' Blog:
Doing RADAR in CakePHP
Apr 12, 2007 @ 15:21:00

Chris Hartjes demonstrates how to get the concept of RADAR (RESTful Application, Dumb-Ass Recipient) up and working with a simple CakePHP application.

Okay, time for some code samples to boost traffic to my site. In a previous posting I talked about the idea of RADAR, or RESTful Application, Dumb-Ass Recipient. So, wanting to see if I could put it into use, I decided to do the following for a new application: Have the core of the application provide data via a REST service, For the web part of it, create controller / action pairs that call the REST service and pass the output onto the views.

There's four code examples included in the post:

  • Defining the IndexController for the app
  • Creating the results, standings and schedule methods in the controller
  • Rendering the XML for the response and for the standings and for the standings for a particular division (two code blocks).

tagged: cakephpframework radar rest interface division standings cakephpframework radar rest interface division standings

Link:

Christian Wenz's Blog:
Zend and Oracle, again
Feb 15, 2006 @ 00:46:00

Christian Wenz has posted this new item on his blog today with a report relating to the Oracle/Zend rumors that have been floating around.

Well, the rumors (that also made it into blogosphere, including Toby's post) obviously could not be ignored by Zend any longer. Therefore, the German division of Zend just sent out an email to a couple of people officially stating that Zend is currently not negotiating a sale to Oracle.

I suppose only time will tell on the deal, but it seems for now that the sale is not going to happen (and that there never was a sale in talks at all).

tagged: buy zend oracle sale rumor not true german division email buy zend oracle sale rumor not true german division email

Link:

Christian Wenz's Blog:
Zend and Oracle, again
Feb 15, 2006 @ 00:46:00

Christian Wenz has posted this new item on his blog today with a report relating to the Oracle/Zend rumors that have been floating around.

Well, the rumors (that also made it into blogosphere, including Toby's post) obviously could not be ignored by Zend any longer. Therefore, the German division of Zend just sent out an email to a couple of people officially stating that Zend is currently not negotiating a sale to Oracle.

I suppose only time will tell on the deal, but it seems for now that the sale is not going to happen (and that there never was a sale in talks at all).

tagged: buy zend oracle sale rumor not true german division email buy zend oracle sale rumor not true german division email

Link:


Trending Topics: