All Projects → clearcodecn → swoole-demo

clearcodecn / swoole-demo

Licence: other
This is a simple swoole usage demo

Programming Languages

PHP
23972 projects - #3 most used programming language

Labels

Projects that are alternatives of or similar to swoole-demo

kafka-swoole
☝️Implement all kafka protocols, providing 'HighLevel' and 'LowLevel' client apis respectively, and utilize swoole to realize collaboration and flexibly extend consumers' client, which is the first php-kafka client to support multiple compression forms
Stars: ✭ 33 (+26.92%)
Mutual labels:  swoole
request-callback
➰ Swoole request callback for PSR compliant handlers.
Stars: ✭ 22 (-15.38%)
Mutual labels:  swoole
sdebug
Xdebug — Step Debugger and Debugging Aid for PHP
Stars: ✭ 263 (+911.54%)
Mutual labels:  swoole
homebrew-extensions
🍻 Homebrew tap for PHP extensions
Stars: ✭ 264 (+915.38%)
Mutual labels:  swoole
ultraman
奥特曼
Stars: ✭ 45 (+73.08%)
Mutual labels:  swoole
hyperf-v2-demo
Hyperf Demo(easywechat,chat)
Stars: ✭ 19 (-26.92%)
Mutual labels:  swoole
RidPT
A Private Tracker System
Stars: ✭ 102 (+292.31%)
Mutual labels:  swoole
slim-swoole
Slim 3 MVC Skeleton With Swoole
Stars: ✭ 52 (+100%)
Mutual labels:  swoole
zhamao-framework
协程、高性能、灵活的聊天机器人 & Web 开发框架(炸毛框架)
Stars: ✭ 99 (+280.77%)
Mutual labels:  swoole
thrift2-hbase
thrift2-hbase component for Hyperf.
Stars: ✭ 14 (-46.15%)
Mutual labels:  swoole
swoole-ide-helper
💪 IDE helper for Swoft and Swoole
Stars: ✭ 42 (+61.54%)
Mutual labels:  swoole
vertica-swoole-adapter
Provides a DB layer for Swoole-based applications to communicate to HP Vertica databases.
Stars: ✭ 14 (-46.15%)
Mutual labels:  swoole
one-app
one 框架初项目始化
Stars: ✭ 19 (-26.92%)
Mutual labels:  swoole
skeleton
基于Swoole的轻量、高效、全异步开源框架。
Stars: ✭ 71 (+173.08%)
Mutual labels:  swoole
yafcms
基于yaf+swoole的高效率,快如闪电的博客cms系统!
Stars: ✭ 17 (-34.62%)
Mutual labels:  swoole
framework
🦋The PHP Framework For Code Poem As Free As Wind.
Stars: ✭ 65 (+150%)
Mutual labels:  swoole
chubbyphp-swoole-request-handler
A request handler adapter for swoole, using PSR-7, PSR-15 and PSR-17.
Stars: ✭ 22 (-15.38%)
Mutual labels:  swoole
laravel-binlog
Add mysql binlog event listening for Laravel ( 为Laravel框架添加Mysql Binlog事件监听 )
Stars: ✭ 19 (-26.92%)
Mutual labels:  swoole
swoole mqtt
一个基于swoole的异步mqtt 客户端库,可用于接收或者发送mqtt协议的消息。支持QoS 0、QoS 1、QoS 2。支持MQTT 3.1和3.1.1版本。 参考workerman-mqtt
Stars: ✭ 41 (+57.69%)
Mutual labels:  swoole
swoft-ddz
基于swoft框架开发斗地主
Stars: ✭ 70 (+169.23%)
Mutual labels:  swoole

swoole 服务器案例demo

目录结构

  • server/ 服务器server端实现
  • client/ 服务器对应文件client简单实现
  • server/http_object_pool 对象池技术 介绍
  • 基准server端代码 server/tcp_oop.php
  • Mysql连接池
  • Yield协程

服务器都是纯异步的.

  • 在swoole_server->start()启动之前 io 操作可以使用同步阻塞的形式 .
  • 在worker进程内如果使用同步阻塞 io 函数 进程将会被阻塞住,
  • 因此,采用worker+task异步回调方式,将网络io 变为纯异步方式 .
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].