O'Reilly logo

PHP 5 Social Networking by Michael Peacock

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

Message queues

Message queues can be used to make a record of any non-critical processing that needs to be done, so that either another server can perform the processing, or we can process it when resources are available.

A message queue stores a list of messages being sent either between computers or servers, or between services running on a server. Example message queue systems include RabbitMQ and Beanstalkd.

Message queue versus database table

If we have the need to store and retrieve a lot of messages in a queue, this can cause table locking if a database table was used (though this can be prevented using the InnoDB storage engine), whereas a message queue system is designed specifically for this sort of thing, as well as providing extra support ...

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