One of the most important architecture solutions of every large project is asynchronous (background) processing. Since the amounts of information to be processed in a certain moment increase, as well as the popularity of Internet resources, it is evident that tasks cannot be accomplished in real-time and in one stack. It slows down for sure the work of the remaining parts of the application. Actually, all tasks in the call stack just join the queue and are accomplished sequentially. Such an approach negatively affects application performance, as well as the general impression of the application users.
In general, when working on any application which has become critical, it is a fact that dividing the services, where possible into synchronous and asynchronous, is a winning strategy in the application's scalability.
In this chapter, we will consider the development basics of asynchronous task execution in Phalcon by using the lightweight queue manager, Beanstalk. The Phalcon...