Windows Azure Lanzhou La Noodle Restaurant-use of logs and queues
In the 9th article, for the sake of understanding, I likened Windows Azure's environment to "Azure Lanzhou La Noodle Restaurant". In this article we continue to use this analogy to talk about queues (queue Storage) and log usage in Windows Azure.
Queue storage was introduced in the "Azure Services Platform Step by step-9th" Windows Azure Storage Overview, which is not repeated here. Queues, as the name suggests, are a queue that processes data in a first-in, first-out order. In the "Azure Lanzhou la noodle Shop" above, the queue acts as a small book for ordering, where the receptionist records the customer's order in the queue, and the kitchen chef cooks the dishes in the order of the queue, one by one.
Windows Azure Log is a log of the entire Azure platform running. Microsoft Official likened Windows Azure to "the operating system of the cloud Platform", and since it is the operating system, it will maintain the log! Windows Azure provides a very simple way to log logs, but unfortunately does not provide the same simple way to view the log--in other words, it's easy to log logs through the program, and it's cumbersome to view the logs. In order not to off, this article only shows how to view the log in development fabric. Interested readers can refer to the source code of the WPF application Azurelogviewer for how to programmatically read the log (see annex at end of article).
Experiment steps:
First step:
Create a new web and Worker Cloud Service in VS2008. This is also the first time in this series of articles to use worker role.
As with the 9th article, add a reference to the storageclient.