Microsoft Azure Data FundamentalsDescribe how to work with non-relational data on AzureMedium
A development team is building a new application that processes a large volume of small, independent messages. Each message represents a task that needs to be processed asynchronously by a worker service. The system must ensure that each message is processed at least once, even if a worker fails, and messages should be automatically removed after successful processing. Which Azure Storage service is designed for this type of asynchronous message queuing?
- AAzure Queue Storage
- BAzure Blob Storage
- CAzure Data Lake Storage Gen2
- DAzure Table Storage
Show answer & explanationAnswer & explanation
Correct answer: A. Azure Queue Storage
Azure Queue Storage is specifically designed for storing large numbers of messages that can be retrieved by applications asynchronously. It ensures messages are processed at least once and supports automatic deletion after successful processing via a visibility timeout.
Why the other options are wrong
- B. Blob Storage is for storing unstructured objects, not for message queuing.
- C. Data Lake Storage Gen2 is for big data analytics, not message queuing.
- D. Table Storage is a key-value store, not for asynchronous messaging.
Azure Queue Storage
A service for storing large numbers of messages that can be accessed from anywhere in the world via authenticated HTTP or HTTPS calls.
- Enables asynchronous communication between application components.
- Messages can be up to 64 KB in size.
- Supports 'at-least-once' message delivery guarantees.
- Messages have a configurable visibility timeout.
Memory trick: Queue for simple tasks, Service Bus for complex, Event Hub for streams.