Skip to content

Commit e2ed76b

Browse files
committed
Add explanation for using pushRaw in job processing in README
1 parent afe443c commit e2ed76b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ $payload = [
1919
'address' => fake()->address(),
2020
];
2121

22+
// Using pushRaw so the job is not serialized but sent as raw JSON
23+
// So in the Go consumer we can decode it directly without needing to unserialize it
2224
$queueManager->pushRaw(json_encode($payload, JSON_THROW_ON_ERROR), 'my_queue_name');
2325
```
2426

0 commit comments

Comments
 (0)