Reading Time: 8 minutes PHP is not known for multi-threaded processing because, until now, it has been very difficult to achieve, as well as buggy to say the least. With the advent of Node and Go, PHP started declining in popularity for this very reason. Node and Go are often chosen over PHP because they are multi-threaded and can handle connections faster without using Apache or NGINX. Benchmarks are truly better for Node than PHP under certain most circumstances. However, Swoole is changing everything.
Reading Time: 7 minutes Asynchronous SQL can seem like a daunting task if you are not using an asynchronous library. These libraries often add a lot of overhead to an existing application and force you to do things their way. So let’s look at how to implement asynchronous SQL queries in your existing code from scratch.
Reading Time: 9 minutes WebSockets have been around for quite some time, but are recently gaining a lot of popularity due to their ability to initiate messages from the server to the user, allowing the website to update on the fly! In this article I’ll be taking a look at what WebSockets are and how you can implement them using asynchronous PHP and Ratchet.