Design an application architecture
Messaging and event-driven architectures, API integration, caching, configuration management and automated deployment.
- 18 min
- 6 concepts
- Try it yourself
- 4-question check
Learn
Modern apps are built from loosely coupled parts that talk through messages, events and APIs. The trick on the exam is telling messages (someone must act on this) from events (something happened).
- 1
Recommend a messaging architecture
Azure Service Bus: enterprise messaging with queues and topics, ordering (sessions), duplicate detection, transactions and dead-lettering. Azure Queue Storage: simple, cheap, very large queues without those features. Use messaging when the sender expects the message to be processed.
Remember: Orders that must be processed exactly once in order: Service Bus.
- 2
Recommend an event-driven architecture
Azure Event Grid: routes discrete events (a blob was created, a resource changed) to handlers with push delivery and filtering; also supports MQTT. Azure Event Hubs: ingests millions of events per second for streaming and telemetry, with partitions, retention and a Kafka endpoint. Events report something happened; the publisher doesn't care what consumers do.
Remember: Reactive notification: Event Grid. Big data stream: Event Hubs.
- 3
Recommend a solution for API integration
Azure API Management publishes APIs through a gateway with policies (rate limiting, caching, JWT validation, transformation), a developer portal, versioning, products and subscriptions. Tiers range from Consumption to Premium (multi-region, VNet). It can also front AI model APIs as an AI gateway.
Remember: Throttle, secure and publish APIs: API Management.
- 4
Recommend a caching solution for applications
Azure Managed Redis (and Azure Cache for Redis) caches data and session state in memory to cut database load and latency. Azure Front Door and CDN cache static content at the edge. API Management can cache responses.
Remember: Hot data in memory: Redis.
- 5
Recommend an application configuration management solution
Azure App Configuration stores settings and feature flags centrally, with labels per environment and dynamic refresh. Keep secrets in Key Vault and reference them from App Configuration. Apps reach both with managed identities.
Remember: Feature flags and central settings: App Configuration.
- 6
Recommend an automated deployment solution for applications
Use GitHub Actions or Azure Pipelines for CI/CD, infrastructure as code with Bicep or Terraform, workload identity federation for pipeline authentication, and deployment slots or blue-green/canary releases. Azure Deployment Environments gives developers self-service, governed environments from templates.
Remember: Pipelines + IaC + federation, no stored secrets.
Messages or events?
| Service | Pattern | Use for |
|---|---|---|
| Service Bus | Messages (queues, topics) | Business transactions needing guaranteed processing |
| Queue Storage | Simple messages | Large, simple work queues |
| Event Grid | Discrete events, push | Reacting to changes |
| Event Hubs | Event streams | Telemetry and big data ingestion |
Try it
Which service fits?
This interactive part needs JavaScript.
In the portal
- Service BusAzure portal: Service Bus > Create
- Event GridAzure portal: Event Grid > Create
- API ManagementAzure portal: API Management services > Create
- App ConfigurationAzure portal: App Configuration > Create
Key terms
Click a card to see the definition.
Check your understanding
4 questions. Score 80% or more and these skills are marked as confident in your AZ-305 study plan.
Which supports ordered, transactional messages with duplicate detection?
Service Bus has enterprise messaging features.
Which is designed for millions of telemetry events per second?
Event Hubs is a streaming ingestion service.
Where should feature flags live?
App Configuration manages flags.
Which reduces database load by caching session data in memory?
In-memory cache.
Sources
- Microsoft Learn: Choose between Azure messaging services
- Microsoft Learn: About API Management
- Microsoft Learn: What is Azure App Configuration?
- Microsoft Learn: Azure Managed Redis overview
Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.