Queue processing is a standardized way in Laravel to offload some time consuming task away from your synchronous processing. Things like image processing, PDF generation and sending emails shouldn’t slow down your request handling.

Using queues helps improve the UX of your customers with reduced latency and a faster Time To Last Byte.

Queue workers are traditionally processes that run continuously and check for new tasks to be handled. A dedicated VM for instance could handle this workload. When the queue is empty you still have to pay for that instance, even if it is idle most of the time…

Google Cloud Platform contains several products for keeping track of your apps and alerting when things go south. In this article I will link a couple of products together to use this built-in alerting functionality in your own application.

In order to send alerts, we need monitoring. To monitor we need metrics. The metrics we need will come from logs. The Cloud Logging and Monitoring components of GCP were formerly know as Stackdriver. They rebranded it to Google Cloud Operation’s suite.

When opening Cloud Monitoring, you will see a couple of default dashboards already available depending on what products you…

Some time ago, I created a container to run Laravel apps on Google Cloud Run. This harnessed the scalable power and ease of setup that comes with a serverless solution. The result was a responsive and cost effective service. Cloud Run spins new container instances up as needed, and down when there’s no traffic. Even all the way down to zero when your app has no visitors. Pay-as-you-use to the nearest 100 millisecond!

While this scaling is great for request-based traffic, it poses a problem for processing queued tasks. …

Alex De Smet

Cloud Engineer @vbridgebv. Former college teacher.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store