Asynchronous Events

Whenever a post is saved, a page is loaded, a comment is created or a template is loaded, WordPress fires off events that, as developers, we have loved and cherished. These events are hooks. While hooks have been the quintessential building blocks of WordPress for over a decade, they come with a cost. Often times, developers will hook functionality into the save_post event, for instance, to fire off a notification to an external service or perform some sort of background task. The more of these tasks are hooked into WordPress, the slower WordPress becomes.

In this talk, I will show you how to alleviate these bottlenecks with asyncronous hooks – hooks that can be used to perform the exact same tasks, but not block the rest of WordPress from running. Through a library created by 10up’s Eric Mann and John Bloch for TechCrunch on WordPress VIP, the overhead of running actions can be reduced to a negligible amount.

Speaker