Closed Yurunsoft closed 2 years ago
Hey @Yurunsoft, this is a good idea. But, from the RR2 POV, this is not a worker
(like in the RR1), it's the pool.
We already have similar a proposal: https://github.com/spiral/roadrunner-plugins/issues/36
@Yurunsoft You are saying about worker customization, what do you mean here?
I hope to write an endless loop in the custom worker process to achieve some functions, such as cron. Temporal is too bloated.
I hope to write an endless loop in the custom worker process to achieve some functions, such as cron. Temporal is too bloated.
To create your own worker you only need to implement the goridge
protocol to communicate with the RR: https://github.com/spiral/goridge/blob/master/pkg/frame/frame.md
It's already implemented in the https://github.com/spiral/goridge-php library. You may have a look at the https://github.com/spiral/roadrunner-worker
Thanks, this has solved my problem https://roadrunner.dev/docs/beep-beep-service
Plugin
No response
I have an idea!
I have an idea, listen to me!!
Can I customize the worker? Like HTTP, I can define commands, pools, etc
I hope to rely on the resident memory feature of roadrunner to implement my own worker.