GithubHelp home page GithubHelp logo

littlesqx / aint-queue Goto Github PK

View Code? Open in Web Editor NEW
178.0 5.0 32.0 539 KB

:rocket: An async-queue library built on top of swoole, flexable multi-consumer, coroutine supported. 基于 Swoole 的一个异步队列库,可弹性伸缩的工作进程池,工作进程协程支持。

License: MIT License

PHP 89.45% HTML 2.40% Batchfile 0.56% Shell 5.94% CSS 1.00% Dockerfile 0.65%
swoole queue job php7 coroutine async-queue worker async

aint-queue's Introduction

Hello 👋

每过一天 叮咛自己再怂一点

🇨🇳 China Shenzhen・Web developer -> Backend developer -> Web developer

aint-queue's People

Contributors

littlesqx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aint-queue's Issues

感觉要放弃了

Fatal error: Uncaught TypeError: Return value of "Littlesqx\AintQueue\Console\Command\WorkerListenCommand::execute()" must be of the type int, "NULL" returned. in /Users/xxx/Documents/www/queue/vendor/symfony/console/Command/Command.php:258

不支持参数吗??

就是推送(new)类或者一个方法的时候,不支持传递参数,后期就直接对这个参数进行处理,

supervisor使用问题

我使用supervisor来保证程序正常执行。
配置里面关键的只有一行

[program:aint-queue]
command=sh queue-start.sh

以下是queue-start.sh里面的内容

./vendor/bin/aint-queue worker:listen --channel=default

config就是用的默认配置
目前会出现多个moniter进程的情况,是我的启动脚本有问题吗?

yii2高级模板 使用的时候 消费队列报错

Fatal error: Littlesqx\AintQueue\Worker\ConsumerWorker::handle(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "api\jobs\SimpleJob" of the object you are trying to operate on was loaded before unserialize() gets called or provide an autoloader to load the class definition in var/project/vendor/littlesqx/aint-queue/src/Worker/ConsumerWorker.php on line 124

问题请教

大佬,为什么要用到lua?
为什么有用到hexists、zscore等?
$object->getCompressingThreshold()这个方法是哪来的?
大佬,这个是咋写出来的?深刻理解swoole?
好多看不懂的,有难度

其他框架如何跟这个结合?

1.使用 http 或者 RPC 方式.塞入任务,并消费队列
2.其他框架直接将任务塞入 redis.由这个东东读取之后自动消费队列
????
另外,稳定吗?可用于生产吗

需要加到swoole首页吗

发现你这个项目很不错,现在swoole首页会放很多应用,需要帮放上去吗 需要联系我qq 393323503

docker 打包顺序有些问题

应该构建镜像的时候进行composer install, 你这边是先install 然后构建镜像,这样就会有一个问题,一般本地环境是没有swoole扩展的,所以第一步就不会成功

aint-queuq: monitor进程很多

随运行时间增长,aint-queue:monitor进程越来越多,占用了大量内存

root      1373     1  0 18:40 ?        00:00:00 aint-queue: monitor#default
root      2952     1  0 18:45 ?        00:00:00 aint-queue: monitor#default
root      4504     1  0 18:50 ?        00:00:00 aint-queue: monitor#default
root      5992     1  0 18:55 ?        00:00:00 aint-queue: monitor#default
root      7442  7441  2 19:00 ?        00:00:02 aint-queue: master#default
root      7456  7442  0 19:00 ?        00:00:00 aint-queue: monitor#default
root      7457  7442  0 19:00 ?        00:00:00 aint-queue: consumer#default
root      7458  7442  0 19:00 ?        00:00:00 aint-queue: consumer#default
root      7459  7442  0 19:00 ?        00:00:00 aint-queue: consumer#default
root      7460  7442  0 19:00 ?        00:00:00 aint-queue: consumer#default
root      7461  7442  0 19:00 ?        00:00:00 aint-queue: consumer#default

我用的是supervisor来执行sh queue-start.sh脚本
queue-start.sh脚本内容如下:

./vendor/bin/aint-queue worker:listen --channel=default

about README

I think "A async-queue library" should be "An async-queue library"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.