Asynchronous PHP: No Longer a Hack Job

3 Views
45ghesgd1
0
Published on 24 Jun 2018 / In PHP

Presented by Ben Dechrai, CTO for Hire

What is this heresy? PHP as an event-based programming language?

Actually, anychronous PHP has been possible for a while. Sort of. By using shell_exec where available, forcefully detaching the client from the PHP process, managing socket connections or even through cURL, developers have found a number of ways to make PHP asynchronous. There's a reason this never really became mainstream.

Now, there is a better way, folks, and if you'll step this way, I'll take you down the ReactPHP rabbit hole and back again in less time that it takes to make 3.6 billion requests!

ReactPHP is event-driven, non-blocking I/O with PHP, and Ben intends to spruik its wares, and throw in a few live demos to boot.

Programme entry: http://2014.osdc.com.au/presen....tation/1271-asynchro
Slides: http://www.slideshare.net/ctof....orhire/asynchronous-
Feedback: https://joind.in/talk/view/12621

Note: this presentation only covers the demo for React and Ratchet. The first 10 minutes, which covered previous methods of developing asynchronous PHP code, were lost due to technical difficulties with the recording equipment.

Show more
0 Comments sort Sort by