Making Async Applications

Christopher Pitt (26.Jan.2018 at 09:00, 3 hr 30 min)
Workshop at PHPBenelux Conference 2018 (English - US)

Rating: 4 of 5

You’ve probably been to a couple talks, about how to do “asynchronous things” with PHP. What the experts don’t tell you is that the hard part starts when you need to build an application.

Sure, there are tools for starting an HTTP server or connecting to a web socket. But what about when you need to write to a database or send an email. You go searching for good tutorials, and all you get is API documentation; about how to use each component in isolation.

Say goodbye to that frustration. In this workshop, I’m going to show you how to build an entirely asynchronous, high-concurrency PHP application. We’ll bring those isolated components together, to build a real application.

Some topics we’ll cover:

HTTP servers and routing
Watching for file changes, and restarting the server daemon
Understanding generators and promises
Adding new and useful syntax (to the PHP language) for async applications
Testing asynchronous code
Working with databases
Validating request parameters and formatting responses
Making requests to the server (including CORS)
Connecting through web sockets
Forking and multithreading
Reading and writing files
Deploying and hosting, with TLS

WHAT YOU’LL NEED TO BRING FOR THE TUTORIAL
Participants will need to have a working version of PHP 7.1+ and MySQL installed on their computer. Without it, they will not be able to code along. Virtualisation and/or setup time is NOT included in the workshop schedule, but I am happy to meet with individuals before/after the workshop to help them get things set up.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

 
Comments closed.

Comments

Rating: 3 of 5

26.Jan.2018 at 14:45 by Gert Vanbeckevoort (4 comments) via Web2 LIVE

Very interesting tals. Everything was clear but the attention went too much to coding. Maybe a small repository on github. This way you can go into more detail, and there is more time to discuss different use cases. However, I am very curious about your book.


26.Jan.2018 at 14:46 by Gert Vanbeckevoort (4 comments) via Web2 LIVE

sorry I mean talk not tals. ;-)

Rating: 4 of 5

27.Jan.2018 at 20:29 by Stef Liekens (6 comments) via Web2 LIVE

Interesting subject and very hands on workshop. Maybe you could setup a repository with code snippets to configure that watcher thing.

Speaker comment:

27.Jan.2018 at 21:13 by Christopher Pitt (87 comments) via Web2 LIVE

I have added a link to the source code (above).

Rating: 4 of 5

29.Jan.2018 at 08:32 by Bart Reunes (46 comments) via Web2 LIVE

Very interesting workshop. Not too fast, not too slow. Might be interesting to setup a repository with the code base, so typing everything doesn't distract that much from what you are explaining.

Rating: 3 of 5

29.Jan.2018 at 11:28 by Robin Brackez (7 comments) via Web2 LIVE

I think there should have been a brief introduction in the beginning about what exactly Async Applications are, and the subjects we're about to cover. (I have to add that I originally subscribed to another course that got cancelled last minute, so I was left a bit in the dark at first). I also agree with the other reviewers that the code snippets should have been downloadable. I can type code and I can listen, but I can't do both at the same time :)
As for the rest, it was an interesting workshop.

© Joind.in 2018