Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Foreign (non-PHP) Workers #194

Closed
g41797 opened this issue Jan 27, 2024 · 3 comments
Closed

Foreign (non-PHP) Workers #194

g41797 opened this issue Jan 27, 2024 · 3 comments

Comments

@g41797
Copy link
Contributor

g41797 commented Jan 27, 2024

Message format allows processing of jobs using non-PHP workers.

Foreign Worker requirements:

  • Worker is CLI application
  • listens on YiiQueue, receives Messages and processes Jobs
  • supports the same protocol and set of drivers (RabbitMQ, Redis, etc)
  • extendable: possibility to add
    • new type of driver
    • job handlers

"All the message data is fully serializable (that means message data must be serializable too)"

Additional requirements for PHP side:

Consider usage of Cloud Events as envelope for submitting jobs to Foreign Workers.

@xepozz
Copy link
Member

xepozz commented Feb 4, 2024

It uses json serializer by default.
Making non-php workers is not responsibility of the package. Any workflow are possible.
Should we close it?

@g41797
Copy link
Contributor Author

g41797 commented Feb 4, 2024

It uses json serializer by default.

I know, but I need to read sources in order to understand...

Making non-php workers is not responsibility of the package.

I know, I'd like to discuss this functionality somewhere - it will be "added value" for Yii. I already started to design go part and need some assistance

Any workflow are possible.

Am not sure. API's and implementation are so PHP oriented. Possible we will need some adjustment on PHP side

Should we close it?

If your are not interested in improving of framework functionality

@xepozz
Copy link
Member

xepozz commented Feb 4, 2024

Provide more details about the problems when you have it.
Use telegram chat for real-time discussions if you don't want to describe the whole picture in each issue.

Thanks.

@xepozz xepozz closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants