queue
queue copied to clipboard
Create additional packages for drivers
https://forum.yiiframework.com/t/additional-packages-for-specific-drivers-storages/125718/2
- amqp_interop
- beanstalk
- db
- file
- gearman
- redis
- sqs
- sync
I wonder if we need non-amqp_interop drivers...
@zhuravljov what do you think?
What's currently covered by amqp_interop:
- beanstalk
- sqs
- redis
- gearman
- file
- db (via doctrine so not a good fit for Yii)
That leaves us with:
- amqp_interop
- sync (could be part of the library itself)
- db
Agreed, sync belongs in yiisoft/yii-queue. Having db & amqp-interop as drivers sounds good for a start.
https://github.com/yiisoft/yii-queue-interop
I don't think we need to create DB driver at this point. We can add it later.
How about the debug & gii modules of yiisoft/yii-queue
?
Does these also separate into different packages such as yiisoft/yii-debug-queue
and yiisoft/yii-gii-queue
?
Same things goes for db-redis for example which currently embeds:
- debug
- rbac
- i18n
- gii
@samdark how would we handle these & the case mentioned by @larryli ? Ideally we need to split those in order to have minimalistic requirements in composer.json, but I'm afraid we'll end up with a zillion packages to maintain.
db (via doctrine so not a good fit for Yii)
I'm not sure how redis driver is different than db in this case - Yii has its own redis extension with own connection - reusing it should be preferred over whatever amqp_interop
uses.
We also need to take care of porting the stomp driver
https://github.com/yiisoft/yii-queue-interop
I don't think we need to create DB driver at this point. We can add it later.
Hi @samdark , do you not think we should actually do DB driver first, reason I say so is barrier to entry, most people have LAMP or WAMP, so without installing anything else they should be use yiisoft/queue. What do you think?
Could be done, yes. yiisoft/db is released so no obstacles. Do you want to handle it?
Could be done, yes. yiisoft/db is released so no obstacles. Do you want to handle it?
Done! Would like to add it in the same folder that SynchronousAdapter.php is. Confirm this is OK? NOTE: This will be my first check into Github, so a bit nervous! Will then raise a few issue to fix the TODO in the file.
No, that should be separate repository.
No, that should be separate repository.
Alexander, that is fine but like I said I have never checked anything into Github, maybe you can help me by creating an empty repository, maybe we can call it yiisoft/queue-db, and I can take it from there!?...
@aphraoh https://github.com/yiisoft/queue-db