Cloud Design Patterns and Application Architecture: Resilience, Scalability, Microservices and Event-Driven Reference Designs

Microsoft Azure Architect Design AZ 301 65 min min read Updated: Nov 17, 2026 Advanced
Cloud Design Patterns and Application Architecture: Resilience, Scalability, Microservices and Event-Driven Reference Designs
Advanced Topic 3 of 3

Architecture Styles

StyleIdeaGood forWatch out
N-tierLayers: web, business, dataLift and shift, simple appsLayers can become tightly coupled
Web-queue-workerWeb front end, queue, workerModerate apps with background workLarge monolithic components
MicroservicesMany small independent servicesLarge, fast-changing systems and many teamsOperational complexity, data consistency
Event-drivenProducers and consumers via eventsReal-time, IoT, loose couplingDebugging and ordering
Big data / big computePipelines and parallel jobsAnalytics, simulationCost control
CQRSSeparate read and write modelsDifferent read and write loadsExtra complexity

Resilience Patterns

PatternProblem solvedHow
RetryTransient faultsRetry with exponential backoff and jitter, limited attempts
Circuit breakerRetrying a dead service wastes resourcesStop calls for a time after repeated failures, then test
BulkheadOne failing part sinks everythingIsolate pools of threads or instances per dependency
TimeoutHanging callsFail fast
Health endpoint monitoringUnknown health/health checks used by load balancers
Compensating transactionUndo multi-step workRun reverse steps (saga)
Leader electionOne coordinatorUse a lease on Blob or a coordination service
python import random, time def call_with_retry(fn, attempts=5, base=0.2): for n in range(attempts): try: return fn() except TimeoutError: if n == attempts - 1: raise time.sleep(base * (2 ** n) + random.uniform(0, base)) # backoff + jitter

Scalability and Performance Patterns

PatternIdea
Cache-asideRead from cache, on a miss load from the database and store with a TTL
Competing consumersWorkers share a queue and scale out
Queue-based load levelingSmooth spikes
ShardingSplit data by key across databases
Throttling / rate limitingProtect the system under load
CQRS and materialized viewPrecomputed read models for fast queries
Static content hosting / CDNOffload static files
Event sourcingStore changes as events, rebuild state

Microservices Design Rules

  • Each service owns its own data. No shared database between services
  • Communicate through APIs and events, not database access
  • Design for independent deployment and versioning
  • Use API gateway, service discovery and centralized logging and tracing
  • Start with a modular monolith if the team and domain are small

Reference Design: Event-Driven Order Platform

text Front Door/WAF -> APIM -> Order service (Container Apps) -> Service Bus topic "orders" |-> Inventory service -> its own Azure SQL |-> Billing service -> its own Cosmos DB |-> Notification Function -> email/SMS Cache-aside with Redis for product catalog. App Insights traces correlate requests across services.

Practice

  1. Choose an architecture style for a small team building an internal tool and for a 40-team retailer
  2. Add retry, circuit breaker and bulkhead to a diagram
  3. Explain cache-aside with a stale data example

Conclusion

Use proven patterns: retry with backoff, circuit breaker and bulkhead for resilience, cache-aside, queues and sharding for scale, and choose an architecture style that matches team size and system complexity.

Quick Summary: styles; resilience; scalability; microservices; reference.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators