2. “The situation where callbacks are
nested within other callbacks several
levels deep, potentially making it
difficult to understand and maintain
the code.
-Wiktionary
3. USE OF CALLBACKS
Why just wait for
Disk reading/writing
Network reading/writing
Communication with DB
Sending mail
When we have other things to
do
6. NOW PHP CAN DO ASYNC
➤ Several built-in functions
➤ Several libraries (using the
built-in functions)
➤ Facebook Hack
7. NOW PHP CAN DO ASYNC
➤ Several built-in functions
➤ Using Curl as async
system
➤ Several libraries (using the
built-in functions)
➤ ReactPHP
➤ Facebook Hack