Event queues with ReactiveX

An event queue would simply ensure that things that are to be done in a synchronous manner or in a first-in first-out manner. Let's define first what a queue is.

A queue is basically a list of things to do, which will get executed one by one until all the things in the queue have been finished.

In Laravel, for example, there is already a concept of queues, where we go through the elements of the queue. You can find the documentation at https://laravel.com/docs/5.0/queues .

Queues are usually used in systems that need to do some tasks in order and not in an asynchronous function. In PHP, there is already the SplQueue class, which provides the main functionalities of a queue implemented using a doubly linked list.

In general, ...

Get PHP 7 Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.