Book Image

Advanced Concepts of PHP Reactive Programming [Video]

By : Martin Sikora
Book Image

Advanced Concepts of PHP Reactive Programming [Video]

By: Martin Sikora

Overview of this book

<p><span id="description" class="sugar_field">Reactive Programming helps us write code that is concise, clear, and readable. Combining the power of reactive programming and PHP, one of the most widely used languages, will enable you to create web applications more pragmatically. PHP Reactive Programming will teach you the benefits of reactive programming via real-world examples with a hands-on approach. Reactive programming goes hand in hand with asynchronous programming; we’ll work a lot with event loops, blocking and non-blocking code, sub processes and IPC.We start with introducing PHP streams and event loop. We’ll also introduce the concept of higher-order Observables as a more advanced functionality of Rx. Moving on to more interesting aspects; you will implement a web socket backend by developing a browser game. You will learn to implement quite complex reactive systems while avoiding pitfalls such as circular dependencies by moving the RxJS logic from the frontend to the backend. The video will then focus on writing extendable RxPHP code by developing a code testing tool and also cover Using RxPHP on both the server and client side of the application. With a concluding video on reactive programming practices, this video will serve as a complete guide for you to start writing reactive applications in PHP.</span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">This course consists of a problem solution approach. This course includes both RxPHP 1 and RxPHP 2.</span></span></p>
Table of Contents (5 chapters)
Chapter 4
Multithreaded and Distributed Computing with Gearman
Content Locked
Section 2
Introduction to Gearman
Gearman is a framework for distributing work among multiple processes and machines. Due to its functionality, it can serve as a manager, load balancer, or interface between different languages with no single point of failure. - Create a program where worker takes the string and returns length - Use PHP Parser as a Gearman worker - Study comparison between pthreads and Gearman