So I was following this tutorial on how to use pub sub as Laravel queue driver. but I am stuck as I was trying to run the worker with php artisan queue:work --queue=clcej which showed error
No connector for [pubsub]
this is the lines I added at my config/queue.php
'default' => env('QUEUE_CONNECTION', 'pubsub'),
'pubsub' => [
'driver' => 'pubsub',
'queue' => 'clcej',
'queue_prefix' => env('PUBSUB_QUEUE_PREFIX', ''),
'project_id' => env('GOOGLE_CLOUD_PROJECT_ID', 'ciputra-nusantara'),
'retries' => 3,
'request_timeout' => 60,
],
I am still confused because in the tutorial there is no step where I have to set up the pub/sub in GCP
or is there easier and efficient way to run a queue worker on a serverless environment ?