
Pull-request previews are worth the cost when shared staging is the bottleneck and a bad merge is expensive. The hard part is state: databases, short-lived credentials and callbacks, not provisioning.
Functions and managed services instead of servers: Lambda, Azure Functions, Cloud Run, durable workflows, and when serverless stops paying off.
The serverless shelf is about where an event-driven workload should run when you do not want to manage servers, and when that stops paying off. The articles compare the shapes each cloud offers for the same job rather than arguing for serverless in general.
Three questions recur. Which plan runs a consumer: Azure Functions on Flex Consumption, Premium or Container Apps, and event-triggered Container Apps jobs for long runs and large images. Which engine runs a long workflow: Step Functions against Lambda durable functions on AWS, decided by whether operators need to see and redrive each step; Durable Functions against Logic Apps on Azure; and a saga written as one Google Cloud Workflows definition. How a function survives duplicates: idempotent SQS consumers that return partial batch failures. Preview environments per pull request carry the tag from the DevOps side.
One caveat repeats: scale on queue depth only when whatever sits behind the queue can take it. When the queue protects a slow database or a rate-limited API, the advice is one always-on consumer.

Pull-request previews are worth the cost when shared staging is the bottleneck and a bad merge is expensive. The hard part is state: databases, short-lived credentials and callbacks, not provisioning.

An event-triggered Container Apps job starts a container per message: right for long runs and big images. How its KEDA rule counts the queue, which defaults to change, when a Function fits better, and when one always-on consumer is the answer.

Start a queue or stream consumer on Flex Consumption: per-function scaling, private triggers with no extra setting, nothing to pay when the queue is empty. Worked East US prices show when always ready, Container Apps or Premium wins.

Functions can now call the same SaaS connectors as Logic Apps, so the connector count no longer decides. Who changes the workflow while instances wait does: replay and versioning in Durable Functions, a 365-day ceiling and resubmit in Logic Apps, and the Durable Task Scheduler chosen on day one.

Write the saga as one Workflows definition: push each undo onto a list before its call, run the list newest first in one except block, and keep Failed for an undo that gave up. Starting each saga once, choreography over Pub/Sub, and when to merge services instead.

Every SQS consumer sees duplicates, and the producer's retry arrives with a new message ID. Key on the business operation, remember it longer than a dead-letter redrive takes, and return partial batch failures.