{"id":798,"date":"2015-08-27T09:04:16","date_gmt":"2015-08-27T09:04:16","guid":{"rendered":"https:\/\/2015.baltimore.wordcamp.org\/?p=798"},"modified":"2015-08-26T16:48:11","modified_gmt":"2015-08-26T16:48:11","slug":"asynchronous-events","status":"publish","type":"post","link":"https:\/\/baltimore.wordcamp.org\/2015\/asynchronous-events\/","title":{"rendered":"Asynchronous Events"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2015.baltimore.wordcamp.org\/files\/2015\/08\/asynchronous-events-aaron-brazell.jpg\" alt=\"Asynchronous Events with Aaron Brazell\" width=\"1023\" height=\"575\" class=\"alignnone size-full wp-image-800\" srcset=\"https:\/\/baltimore.wordcamp.org\/2015\/files\/2015\/08\/asynchronous-events-aaron-brazell.jpg 1023w, https:\/\/baltimore.wordcamp.org\/2015\/files\/2015\/08\/asynchronous-events-aaron-brazell-300x169.jpg 300w, https:\/\/baltimore.wordcamp.org\/2015\/files\/2015\/08\/asynchronous-events-aaron-brazell-500x281.jpg 500w, https:\/\/baltimore.wordcamp.org\/2015\/files\/2015\/08\/asynchronous-events-aaron-brazell-1000x562.jpg 1000w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><br \/>\nWhenever 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.<\/p>\n<p>In this talk, I will show you how to alleviate these bottlenecks with asynchronous hooks \u2013 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\u2019s Eric Mann and John Bloch for TechCrunch on WordPress VIP, the overhead of running actions can be reduced to a negligible amount.<\/p>\n<p><strong>About the Speaker:<\/strong> Aaron is a Sr. Web Engineer with <a href=\"http:\/\/10up.com\/\" target=\"blank\">10up<\/a>. He was a co-founder of WP Engine and the author of the WordPress Bible. Aaron has been working with WordPress since 2004 and remembers hooks and pages becoming a thing. In his free time, he spends time with his 26lb terrier, likes to sample craft beer and exercises his photography. He lives right here in Mt. Vernon, Baltimore.<\/p>\n<p><a class=\"blogregister\" href=\"\/2015\/tickets\/\">Register Now<\/a><\/p>\n<h3>Details<\/h3>\n<p>Saturday, September 12, 2015<br \/>\n9:00 am | Station North<\/p>\n<h3>Venue<\/h3>\n<p><strong>William H. Thumel Sr. Business Center<\/strong><br \/>\n11 W Mount Royal Ave<br \/>\nBaltimore, MD, 21201<br \/>\n<a style=\"font-size: 0.8em\" href=\"\/2015\/venue\/\">View Complete Venue Details<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/baltimore.wordcamp.org\/2015\/asynchronous-events\/\">Continue reading <span class=\"assistive-text\">Asynchronous Events<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":14561726,"featured_media":800,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[],"class_list":["post-798","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/baltimore.wordcamp.org\/2015\/files\/2015\/08\/asynchronous-events-aaron-brazell.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Ukec-cS","_links":{"self":[{"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/posts\/798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/users\/14561726"}],"replies":[{"embeddable":true,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/comments?post=798"}],"version-history":[{"count":1,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/posts\/798\/revisions"}],"predecessor-version":[{"id":801,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/posts\/798\/revisions\/801"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/media\/800"}],"wp:attachment":[{"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/media?parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/categories?post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baltimore.wordcamp.org\/2015\/wp-json\/wp\/v2\/tags?post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}