Enviar pesquisa
Carregar
How Swoole Blows Up your Mind about PHP?
•
0 gostou
•
36 visualizações
Albert Chen
Seguir
PHPCon Okinawa 2019
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 32
Baixar agora
Baixar para ler offline
Recomendados
How to Supercharge your PHP Web API
How to Supercharge your PHP Web API
Aurimas Niekis
How to Build a High Performance Application with PHP and Swoole?
How to Build a High Performance Application with PHP and Swoole?
Albert Chen
2021.laravelconf.tw.slides1
2021.laravelconf.tw.slides1
LiviaLiaoFontech
Hhvm and wordpress
Hhvm and wordpress
Mark Kelnar
Northeast PHP - High Performance PHP
Northeast PHP - High Performance PHP
Jonathan Klein
Php internal architecture
Php internal architecture
Elizabeth Smith
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
Nexcess.net LLC
Putting Compilers to Work
Putting Compilers to Work
SingleStore
Recomendados
How to Supercharge your PHP Web API
How to Supercharge your PHP Web API
Aurimas Niekis
How to Build a High Performance Application with PHP and Swoole?
How to Build a High Performance Application with PHP and Swoole?
Albert Chen
2021.laravelconf.tw.slides1
2021.laravelconf.tw.slides1
LiviaLiaoFontech
Hhvm and wordpress
Hhvm and wordpress
Mark Kelnar
Northeast PHP - High Performance PHP
Northeast PHP - High Performance PHP
Jonathan Klein
Php internal architecture
Php internal architecture
Elizabeth Smith
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
Nexcess.net LLC
Putting Compilers to Work
Putting Compilers to Work
SingleStore
Automation in Network Lifecycle Management - Bay Area Juniper Meetup
Automation in Network Lifecycle Management - Bay Area Juniper Meetup
Jorge Bonilla
Joomla Code Quality Control and Automation Testing
Joomla Code Quality Control and Automation Testing
Shyam Sunder Verma
Dutch php conference_2010_opm
Dutch php conference_2010_opm
isnull
Intro to CakePHP
Intro to CakePHP
Walther Lalk
Api fundamentals
Api fundamentals
AgileDenver
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
Tech in Asia ID
PHP is the King, nodejs is the Prince and Lua is the fool
PHP is the King, nodejs is the Prince and Lua is the fool
Alessandro Cinelli (cirpo)
Scaling with Symfony - PHP UK
Scaling with Symfony - PHP UK
Ricard Clau
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
JoEllen Carter
Building real time applications with Symfony2
Building real time applications with Symfony2
Antonio Peric-Mazar
Server side story
Server side story
Simone Deponti
Php through the eyes of a hoster: PHPNW10
Php through the eyes of a hoster: PHPNW10
Combell NV
Understand How Node.js and Core Features Works
Understand How Node.js and Core Features Works
Hengki Sihombing
My cool new Slideshow!
My cool new Slideshow!
netzwelt12345
ReactPHP + Symfony
ReactPHP + Symfony
David Bergunder
Adding Real-time Features to PHP Applications
Adding Real-time Features to PHP Applications
Ronny López
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
FalafelSoftware
Intro To Puppet.Key
Intro To Puppet.Key
Work
PHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the fool
Alessandro Cinelli (cirpo)
2013 - Igor Sysoev - NGINx: origen, evolución y futuro - PHP Conference Argen...
2013 - Igor Sysoev - NGINx: origen, evolución y futuro - PHP Conference Argen...
PHP Conference Argentina
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
kalichargn70th171
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
Mais conteúdo relacionado
Semelhante a How Swoole Blows Up your Mind about PHP?
Automation in Network Lifecycle Management - Bay Area Juniper Meetup
Automation in Network Lifecycle Management - Bay Area Juniper Meetup
Jorge Bonilla
Joomla Code Quality Control and Automation Testing
Joomla Code Quality Control and Automation Testing
Shyam Sunder Verma
Dutch php conference_2010_opm
Dutch php conference_2010_opm
isnull
Intro to CakePHP
Intro to CakePHP
Walther Lalk
Api fundamentals
Api fundamentals
AgileDenver
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
Tech in Asia ID
PHP is the King, nodejs is the Prince and Lua is the fool
PHP is the King, nodejs is the Prince and Lua is the fool
Alessandro Cinelli (cirpo)
Scaling with Symfony - PHP UK
Scaling with Symfony - PHP UK
Ricard Clau
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
JoEllen Carter
Building real time applications with Symfony2
Building real time applications with Symfony2
Antonio Peric-Mazar
Server side story
Server side story
Simone Deponti
Php through the eyes of a hoster: PHPNW10
Php through the eyes of a hoster: PHPNW10
Combell NV
Understand How Node.js and Core Features Works
Understand How Node.js and Core Features Works
Hengki Sihombing
My cool new Slideshow!
My cool new Slideshow!
netzwelt12345
ReactPHP + Symfony
ReactPHP + Symfony
David Bergunder
Adding Real-time Features to PHP Applications
Adding Real-time Features to PHP Applications
Ronny López
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
FalafelSoftware
Intro To Puppet.Key
Intro To Puppet.Key
Work
PHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the fool
Alessandro Cinelli (cirpo)
2013 - Igor Sysoev - NGINx: origen, evolución y futuro - PHP Conference Argen...
2013 - Igor Sysoev - NGINx: origen, evolución y futuro - PHP Conference Argen...
PHP Conference Argentina
Semelhante a How Swoole Blows Up your Mind about PHP?
(20)
Automation in Network Lifecycle Management - Bay Area Juniper Meetup
Automation in Network Lifecycle Management - Bay Area Juniper Meetup
Joomla Code Quality Control and Automation Testing
Joomla Code Quality Control and Automation Testing
Dutch php conference_2010_opm
Dutch php conference_2010_opm
Intro to CakePHP
Intro to CakePHP
Api fundamentals
Api fundamentals
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
PHP is the King, nodejs is the Prince and Lua is the fool
PHP is the King, nodejs is the Prince and Lua is the fool
Scaling with Symfony - PHP UK
Scaling with Symfony - PHP UK
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
Building real time applications with Symfony2
Building real time applications with Symfony2
Server side story
Server side story
Php through the eyes of a hoster: PHPNW10
Php through the eyes of a hoster: PHPNW10
Understand How Node.js and Core Features Works
Understand How Node.js and Core Features Works
My cool new Slideshow!
My cool new Slideshow!
ReactPHP + Symfony
ReactPHP + Symfony
Adding Real-time Features to PHP Applications
Adding Real-time Features to PHP Applications
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Intro To Puppet.Key
Intro To Puppet.Key
PHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the fool
2013 - Igor Sysoev - NGINx: origen, evolución y futuro - PHP Conference Argen...
2013 - Igor Sysoev - NGINx: origen, evolución y futuro - PHP Conference Argen...
Último
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
kalichargn70th171
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
Delhi Call girls
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
gurkirankumar98700
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Wave PLM
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
joe51371421
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
harshavardhanraghave
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
Jhone kinadey
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
MyIntelliSource, Inc.
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
panagenda
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
kalichargn70th171
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
OnePlan Solutions
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
ICS
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Willy Marroquin (WillyDevNET)
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
shikhaohhpro
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Steffen Staab
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
AxelRicardoTrocheRiq
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Último
(20)
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
How Swoole Blows Up your Mind about PHP?
1.
How Swoole Blows Up
Your Mind? @PHPCon Okinawa 2019 By Albert Chen
2.
About Me • Albert
Chen • Software Architect • M17 HandsUp • Open Source Maintainer
3.
What is Swoole?
4.
5.
What is Swoole? •
A C extension for PHP • An asynchronous network engine for PHP • Features: • Event-driven non-blocking I/O • HTTP / HTTP2 / Websocket / TCP / UDP • Coroutine (CSP Model) • High performance for high concurrency
6.
Why PHP Performs Poorly
in High Concurrency?
7.
Lifecycle in PHP
8.
Lifecycle in PHP PHP Files Tokenizing Semantic Parsing AST Generate Bytecode Execute Bytecode Output Load
Bytecode From Memory Check Bytecode Cache
9.
Blocking I/O in
PHP Request Request Request Request PHP FPM FPM Pool FPM Pool Worker Worker Worker Worker Blocking I/O
10.
Eventloop in NodeJS
11.
There’s no Eventloop in
Traditional PHP
12.
Let’s See What
Changes in Swoole?
13.
Structure in Swoole
Server
14.
Structure in Swoole
Server • Code Is Persistent in Memory • Swoole Takes Lifecycle Over PHP • Reduce Initialization Steps • Reduce Response Latency • Event-driven Non-blocking I/O for Requests
15.
Benchmark Comparison of Go
with Swoole
16.
Server Benchmark in
Go
17.
Server Benchmark in
Go
18.
Server Benchmark in
Swoole
19.
Server Benchmark in
Swoole
20.
This Doesn’t Mean PHP
with Swoole is Faster Than Go (Of Course Not)
21.
Coroutine in Swoole
22.
Coroutine in Swoole •
Blocking I/Os Are Scheduled By Coroutine Automatically.
23.
Coroutine in Swoole •
Blocking I/Os Are Scheduled By Coroutine Automatically.
24.
Coroutine in Swoole •
CSP Model
25.
Does This Mean
Every Blocking I/O Doesn’t Block Anymore?
26.
Coroutine in Swoole •
How about This?
27.
Coroutine in Swoole •
How about This?
28.
Runtime Hooks Transform Blocking
I/Os into Coroutines with Magic!
29.
Use Case In HandsUp
30.
Use Case Facebook Webhooks Message Load Balancer Server Server Server Queue PubNub Service Analysis Service Swoole Service PubSub Many
to Many Queue Workers High Concurrent Requests
31.
Use Case • Replace
Guzzle Handler with Swoole Client
32.
Q&A
Baixar agora