Queue processing is a standardized way in Laravel to offload some time consuming task away from your synchronous processing. Using queues helps improve the UX of your customers with reduced latency and a faster Time To Last Byte.
The great part of working with containers and Cloud Run is that you can use built-in tools to automatically deploy your code using Cloud Build triggers and Container Registry to store your images.
A quick and dirty way of getting started is to create a Jobs link in your web.php route file: This will take the request coming from Pub/Sub and trigger the execution of the EchoOutput Job.
Get the URL of your Cloud Run Instance and go to the Pub/Sub topic.