希格工作室

2011年9月14日 星期三

Tech Days 2011 手記(第二日--(Cos301 Windows Azure 儲存體的深入及運用)

講師是李智樺老師

講解Windows Azure Storage(雲端資料儲存體)
Storage分為四個大類 Table, Blob,Queue,Drive,這堂課以Table部份來說明Demo

未來是屬於混合雲的時代、個人的雲端,我們該如何設計雲端以及如何將傳統應用轉至雲端

Coding Windows Azure Storage
雲端上即使是自行設計的程式,你又是怎麼知道整個程式是怎麼進行的?
所以我們只能進行探索式的測試,但 Log是可以還原真相(你不知道雲端發生什麼事)

 Demo部份只記到用blobClient就能對四大類作處理,其它的要查看光碟了(我是最後一個拿到的,還要我負責發,李老師說沒拿到的有事找我,結果還有人沒拿到真的喊了聲"靠~",哈哈....)
 //Create the blob Client
 blobClient = cloudStorageAccount.CreateCloudBlobClient();

在寫Azure Storage之前一定要用到幾個using
參考: progam file\Windows Azrue SDK\ (要加入跟Azrue有關的dll)
Using System.Data.Service.Client<--
using Microsoft.WindowsAzure、Microsoft.WindowsAzure.Diagnostics、Microsoft.WindowsAzure.ServiceRuntime、Microsoft.WindowsAzure.StorageClient

如果Debug遇到問題,先注意WindowsAzure的.NET FW不能在.NET FW 4 Client,只在.NET FW 4

安裝Azure Storage Explore and Windows Azure Manager

有提到一句很重要的話:The TABLE is not DB Table
與資料庫雲端不一樣的地方,可快速儲存,你可以用來存取簡單快速的資料部份



Azure Queues
方法:AddMessage() DeleteMessage()
Message limited to 8KB in size
FIFO
500 operations per second
Pop receipt
Max to 100TB



Azure Storage Emulator
可以TRACE
注意:可能會漏掉DLL、無法直接RUN結果、權限可能與本地不同、Load balancer




為什麼雲端不用成檔案總管的結構?
要用Table Blob Queue Drive
因為不可能透過金字塔型的檔案結構在隨時可能改變型態的環境
雲端的FileSystemBlob


先這樣,過兩天再整理

沒有留言:

張貼留言