Migration from RRv1 to RRv2
Last updated
Was this helpful?
Last updated
Was this helpful?
To migration integration from RoadRunner v1.* to v2.*/v2023+ follow the next steps.
Second version of RoadRunner use single worker factory for all of its plugins. This means that you must include a new section into your config server
which is responsible for the worker creation. Limit service no longer presented as separate entity but rather part of specific service configuration.
Read more in .
RoadRunner 2.0+ intercepts all output to the STDOUT, this means you can start using default var_dump and other echo function without breaking the communication. Yay!
We no longer ship the default PSR implementation with RoadRunner, make sure to include one you like the most by yourself. For example:
RoadRunner simplifies worker creation, use static create()
method to automatically configure your worker:
Pass the PSR-15 factories to your PSR Worker:
RoadRunner 2 unifies all workers to use similar naming, change acceptRequest
to waitRequest
:
To create RPC client use new Goridge API: