message-queue:php的消息队列

时间:2021-06-07 06:43:20
【文件属性】:
文件名称:message-queue:php的消息队列
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-07 06:43:20
PHP PHP消息队列的一些实现 目录: 消息队列的简介 性能测试 消息队列的简介 消息队列(Message Queue):把消息按照产生的次序加入队列,而由另外的处理程序/模块将其从队列中取出,并加以处理;从而形成了一个基本的消息队列。应用场景:短信服务、电子邮件服务、图片处理服务、好友动态推送服务等。 这里主要做了以下几个实现: redis+list mongodb+index+timestamp memcached+pointer amqp+rabbitmq 性能测试 性能测试使用的是QueueBench.php实现的,其环境参数与测试结果如下: php: 5.4.40 Linux: 3.13.0-34-generic(buildd@allspice) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) memory: 4GB cpu: Intel(R
【文件预览】:
message-queue-master
----MemcachedQueue.php(4KB)
----RedisQueue.php(2KB)
----RabbitQueue.php(3KB)
----MobileMessagePublisher.php(787B)
----IQueue.php(602B)
----MongodbQueue.php(3KB)
----TmpTest.php(895B)
----QueueBench.php(2KB)
----README.md(4KB)
----MessageQueueProxy.php(317B)
----config.php(609B)
----MobileMessageCustomer.php(775B)

网友评论