[{"data":1,"prerenderedAt":86},["ShallowReactive",2],{"insight-azure-event-driven-patterns":3},{"id":4,"title":5,"body":6,"description":77,"extension":78,"meta":79,"navigation":81,"path":82,"seo":83,"stem":84,"__hash__":85},"insights/insights/azure-event-driven-patterns.md","Event-driven patterns on Azure",{"type":7,"value":8,"toc":70},"minimark",[9,14,31,35,55,59],[10,11,13],"h2",{"id":12},"choosing-the-right-tool","Choosing the right tool",[15,16,17,18,22,23,26,27,30],"p",{},"Azure offers three main options for messaging and events: ",[19,20,21],"strong",{},"Service Bus"," (queues and topics), ",[19,24,25],{},"Event Grid"," (pub/sub, event routing), and ",[19,28,29],{},"Event Hubs"," (high-throughput streaming). The choice depends on throughput, ordering guarantees, and how tightly coupled you want producers and consumers to be.",[10,32,34],{"id":33},"practical-guidance","Practical guidance",[36,37,38,45,50],"ul",{},[39,40,41,42,44],"li",{},"Use ",[19,43,21],{}," when you need reliable delivery, FIFO per queue, or transactional patterns. Good for order processing, workflow orchestration.",[39,46,41,47,49],{},[19,48,25],{}," when you need fan-out, low latency, and event-sourced or reactive integrations. Good for notifying multiple subscribers, reacting to blob uploads or resource changes.",[39,51,41,52,54],{},[19,53,29],{}," when you're ingesting high-volume telemetry or streams. Overkill for most business events.",[10,56,58],{"id":57},"common-pitfalls","Common pitfalls",[36,60,61,64,67],{},[39,62,63],{},"Don't default to Event Hubs for simple pub/sub—Event Grid is simpler and cheaper.",[39,65,66],{},"Avoid building a custom abstraction over all three; pick one or two per bounded context and stick with it.",[39,68,69],{},"Consider at-least-once vs exactly-once semantics early; it affects your entire consumer design.",{"title":71,"searchDepth":72,"depth":72,"links":73},"",2,[74,75,76],{"id":12,"depth":72,"text":13},{"id":33,"depth":72,"text":34},{"id":57,"depth":72,"text":58},"When to use Service Bus, Event Grid, or Event Hubs—and how to avoid over-engineering your messaging layer.","md",{"date":80},"2025-02-18",true,"/insights/azure-event-driven-patterns",{"title":5,"description":77},"insights/azure-event-driven-patterns","svUaLsDkfp45VDsb0B5wQ6ohTevKzoVmuuxmPhpJNRw",1772823101491]