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.
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.