Laravel queue job compatibility with Hypervel queue workers #7
-
Hi guys I'm interested in using Hypervel to process jobs from a Laravel app. Are Laravel jobs and job serialisation fully compatible with Hypervel? And are there any special considerations or best practices when sharing jobs between the frameworks? I understand we can't pass things like models in the payload. But Laravel has other job-related features eg. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @binaryfire, Every class being serialized in the job payload must exist a same copy on the other framework. For instance, if you serialize While there's no context hydrating feature in Hypervel, so it won't take effect in Hypervel. |
Beta Was this translation helpful? Give feedback.
Hi @binaryfire,
Every class being serialized in the job payload must exist a same copy on the other framework. For instance, if you serialize
User
model in the job in Laravel, then you need to have a sameUser
class with the same namespace and properties definition in Hypervel, vice versa.While there's no context hydrating feature in Hypervel, so it won't take effect in Hypervel.