
Stored access keys turn a CI pipeline into a breach. OIDC federation replaces them with short-lived tokens, but only a narrowly scoped subject condition stops the trust policy recreating the same hole.
Architecture on Microsoft Azure: Service Bus, Event Grid, Functions, Container Apps and Kubernetes on AKS.
The Azure shelf starts from one question: what is the message? A command one service must carry out goes on a Service Bus queue. A fact anyone may react to goes through Event Grid. A stream to be read in order goes into Event Hubs. A sequence of steps that is itself the business rule becomes a Durable Functions orchestration rather than more messages.
From there it divides into reliability, compute and edges. Reliability: why Service Bus duplicate detection protects the send but not the processing, and a transactional outbox built from Cosmos DB batches and the change feed. Compute: where an event consumer runs, on Flex Consumption, Premium or Container Apps; event-triggered Container Apps jobs scaled by KEDA; and Durable Functions against Logic Apps, decided by who changes the workflow while instances wait. Edges: Web PubSub against SignalR Service for real-time push, the three managed Gateway API options on AKS, and deploying from CI with federated identity instead of stored keys.
Read it if you build on Azure and want each choice framed by what happens on failure rather than by the product catalogue.

Stored access keys turn a CI pipeline into a breach. OIDC federation replaces them with short-lived tokens, but only a narrowly scoped subject condition stops the trust policy recreating the same hole.

SignalR Service when the app and every client already speak SignalR; Web PubSub for plain WebSocket, Socket.IO or MQTT clients. Both cost $1.61 a unit a day, so count the fan-out, and poll when users wait for one answer.

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.

Service Bus duplicate detection drops a resent MessageId inside its window and nothing else. Lost locks, lost completes and dead-letter resends still deliver twice: key on the operation, record it with the side effect, and dead-letter early.

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.