Posts Tagged ‘queue’

A “queue” is basically a series of “things” waiting to do something. Just like some people refer to a line of people as a queue, in technical terms a queue is a series of processes waiting to be executed. Sometimes high-end web applications will create queue’s – so instead of running a piece of logic at runtime, it will “queue” it for later and run it gradually, which can solve a variety of problems.

Glossary: Queue

A queue, in our context, is a way of lining up requests, and having a program that processes those. Basically, it’s a way of saying “do this later”. It might still be done immediately, but for a variety of reasons it may not happen immediately. The purpose of the queue may not to be “do it later”, but that will happen regardless. The purpose of a queue can be anything from fixing a performance problem, to preventing performance spikes, to delaying a request a minimum amount of time or a number of other reasons. (more…)

PHP/MySQL Performance Series: Part 4 – Schedule that Cron

Crons can solve a lot of problems, but they can also create a lot of problems so be careful.

Usually you’ll make a cron to fix a specific problem, or to create a queue. There aren’t a whole lot of “standard” crons that we can discuss. (more…)

PHP/MySQL Performance Series: Part 2 – Creating a Queue

The Queue.

It’s a wonderful thing. Queues are a great way to deal with performance issues. Generally, from an end-user perspective they make the system appear to work very quickly.

This is #2 in our series because if you are searching for information on performance fixes, chance’s are you need a quick fix of some type. Queues are a great quick fix, they are also suitable for long-term implementation, and can solve a variety of problems, however they are only useful in certain situations so don’t get overzealous. (more…)