SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
開發 Windows Azure 雲端應用程式
小朱 (Windows Azure MVP)
 小朱
 Windows Azure MVP (11th MVP awards)
 SQL Server, ASP.NET, Solution Architect, Windows Azure
 技術傳教士、顧門口、研發人員、經理、講師、學生、開發人員、網
管、作者、譯者、校稿者、...
 MCP: 11 類 50 張 ...
 70% 來自於 beta,30% 來自於小朋友。
 致力於雲端運算技術推廣與微軟技術深耕。
Read ME
 Windows Azure Platform 簡介
 開發 MVC-based Cloud 應用程式
 Cloud Service
 Website
 Storage
 Database
 雲端架構學
 結語
Agenda
Windows Azure Platform 簡介
 微軟的公有雲解決方案。
 支援簡單到複雜的環境。
 Website
 Cloud Service
 Virtual Machine
 可用度 99% 以上。
 支援多平台的開發應用。
Windows Azure Platform 簡介
資料中心
 Windows Vista 以上
 建議 Windows 7 or Windows 8
 必須安裝 IIS 功能,包含 .NET Framework 4.0 與 ASP.NET
 Visual Studio 2010 SP1 以上
 建議 Visual Studio 2012
 SQL Server 2005 以上
 建議 SQL Server 2012
 支援 Express 和 Express LocalDB
開發環境
 自動化安裝
 Web Platform Installer 4.0 Customized Installation
 手動安裝
 Windows Azure SDK 1.7 (June 2012 Refresh)
 依照服務的更新隨時升級。
 文件在 MSDN Library
 或安裝 Visual Studio 2012 Documentation (ISO)
開發環境
 試用帳戶 (https://www.windowsazure.com/zh-tw/pricing/free-trial/)
 90天免費試用期,需要 Microsoft Account (Live ID)。
 需要信用卡,但只會在驗證時扣美金1元,而且不會請款。
 在試用期間如果超過配額,會中斷服務。
註冊帳戶
 正式帳戶
 Pay-as-you-go
 Promotional quotas
 半年期或一年期方案。
 MSDN Offers
 BizSpark Offers
 MPN Offers
註冊帳戶
Windows Azure APIs
Windows Azure Storage Options
雲端服務類型
 Cloud Service
 雲端專案。
 Web Role/Worker Role。
 每個服務享有獨立 VM。
 適合複雜的環境。
 Website
 網站專案。
 Web Role 的更新版。
 依模式不同決定是否與他
人共享或專屬的 CPU 資源。
 適合簡單的環境。
demo
 建立 MVC 4.0 應用程式。
 存取資料庫。
 存取表格儲存。
 發行應用程式到雲端。
 更新應用程式。
demo
 建立 MVC 4.0 應用程式。
 存取資料庫。
 存取表格儲存。
 發行應用程式到雲端。
 雲端應用程式與本地不同。
 Hosting Only?
 Single instance vs. Multiple instances
 SQL and NoSQL
 Tightly Coupled vs. Loosely Coupled
 Multi-devices
 本地思維 vs. 雲端思維。
雲端架構學
 Cloud-enabled Application
 充分運用雲端資源。
 Computes
 Storages
 能適應 Scalability。
 單一程式多用戶架構。
 支援多重裝置。
雲端架構學
StockTrader Sample Solution
Web Application Layer (UI)
UserInterface
MiddleTier
BusinessServicesDataAccess
SQL Server/
SQL Azure
Account
Table
Account
Profile
Table
Orders
Table
Holdings
Table
Quote Table
Data Access Layer (DAL)
Market Summary
Class
Customer Class Orders Class
Middle-Tier Business Services Layer (BSL)Business Service Layer
Core StockTrader
Services Classes
Business Transactions
Service
Client Class
Order Processor Service (OPS)
Service
Client Class
Order Processing Service Class
OrdersTier
ASP.NET Web Forms
Business Transactions
StockTrader Sample Solution
Web Role
Azure
StockTrader
Web Application
Worker Role
Azure
StockTrader
Order Processor
Service
Web Role
Azure
StockTrader
Business
Services
Account
DB
SQL Azure
Scale-out
InstancesScale-out
Instances
Scale-out
Instances
Quote
DB
SQL Azure
RESTful Endpoint
+ Token Service
Polling
Publishing
 Windows Azure Platform 是很容易使用的公有雲環境。
 多樣化的服務。
 使用既有的開發方式。
 發行與移轉應用程式十分簡單。
 設計雲端應用程式時,架構比技術更重要。
結語
 Windows Azure Official Site
 http://www.windowsazure.com/
 MSDN Windows Azure Platform Documentation
 https://www.windowsazure.com/en-us/develop/net/reference/
 MSDN 邊做邊學
 http://msdn.microsoft.com/zh-tw/windowsazure/gg456243.aspx
 MSDN Windows Azure 實作手冊
 http://msdn.microsoft.com/zh-tw/jj590639
參考資料 (官方)
 小朱的技術隨手寫
 http://www.dotblogs.com.tw/regionbbs/category/3312.aspx
 StudyAzure.com 雲端學堂 Facebook
 https://www.facebook.com/studyazure
 Sky Chuang
 http://www.dotblogs.com.tw/skychang/
 Terry Chuang
 http://www.dotblogs.com.tw/terrychuang/
參考資料 (非官方)
 Windows Azure 教戰手札
 第一版在書店與網路都有在賣。
 第二版即將於年底上市。
 Developer Edition: 2012/12
 IT PRO Edition: 2013/1
 原文書
 Programming Windows Azure (O’Reilly)
 SOA with .NET and Windows Azure
參考資料 (書籍)
http://mvc.tw
台灣 ASP.NET MVC 專業推廣團隊
本著作係採用 Creative Commons 姓名標示-非商業性-相同方式分享 3.0 台灣 (中華民國) 授權條款授權。

Contenu connexe

Plus de twMVC

讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場
讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場
讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場twMVC
 
線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...
線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...
線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...twMVC
 
Azure mobileservice
Azure mobileservice Azure mobileservice
Azure mobileservice twMVC
 
一小時可以打造什麼服務Plus twMVC#18
一小時可以打造什麼服務Plus twMVC#18一小時可以打造什麼服務Plus twMVC#18
一小時可以打造什麼服務Plus twMVC#18twMVC
 
專案分層架構 twMVC#18
專案分層架構 twMVC#18專案分層架構 twMVC#18
專案分層架構 twMVC#18twMVC
 
SignalR實戰技巧 twmvc#17
SignalR實戰技巧 twmvc#17 SignalR實戰技巧 twmvc#17
SignalR實戰技巧 twmvc#17 twMVC
 
Angular js twmvc#17
Angular js twmvc#17Angular js twmvc#17
Angular js twmvc#17twMVC
 
TypeScript-twmvc#16
TypeScript-twmvc#16TypeScript-twmvc#16
TypeScript-twmvc#16twMVC
 
前端工程師與室內裝修師傅的相似之處-twMVC#16
前端工程師與室內裝修師傅的相似之處-twMVC#16前端工程師與室內裝修師傅的相似之處-twMVC#16
前端工程師與室內裝修師傅的相似之處-twMVC#16twMVC
 
開發的效能與效率-twMVC#15
開發的效能與效率-twMVC#15開發的效能與效率-twMVC#15
開發的效能與效率-twMVC#15twMVC
 
動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15twMVC
 
樞紐分析表之數據分析與統計-twMV#C14
樞紐分析表之數據分析與統計-twMV#C14樞紐分析表之數據分析與統計-twMV#C14
樞紐分析表之數據分析與統計-twMV#C14twMVC
 
輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14twMVC
 
MVC實戰分享 分頁與排序相關技巧-tw mvc#13
MVC實戰分享 分頁與排序相關技巧-tw mvc#13MVC實戰分享 分頁與排序相關技巧-tw mvc#13
MVC實戰分享 分頁與排序相關技巧-tw mvc#13twMVC
 
RWD不是你想的那樣 tw mvc#13
RWD不是你想的那樣 tw mvc#13RWD不是你想的那樣 tw mvc#13
RWD不是你想的那樣 tw mvc#13twMVC
 
ASP.NET MVC 善用網路資源快速完打造網站
ASP.NET MVC 善用網路資源快速完打造網站ASP.NET MVC 善用網路資源快速完打造網站
ASP.NET MVC 善用網路資源快速完打造網站twMVC
 
如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12twMVC
 
Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11twMVC
 
架構設計入門 twMVC#11
架構設計入門 twMVC#11架構設計入門 twMVC#11
架構設計入門 twMVC#11twMVC
 
ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10twMVC
 

Plus de twMVC (20)

讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場
讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場
讓應用程式雲端化 由 Iaa s 邁向 paas 之路-Global Azure Bootcamp 2015 臺北場
 
線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...
線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...
線上遊戲利用 Dev ops 開源工具 chef, docker, vagrant 在microsoft azure 的佈署實踐-Global Azure...
 
Azure mobileservice
Azure mobileservice Azure mobileservice
Azure mobileservice
 
一小時可以打造什麼服務Plus twMVC#18
一小時可以打造什麼服務Plus twMVC#18一小時可以打造什麼服務Plus twMVC#18
一小時可以打造什麼服務Plus twMVC#18
 
專案分層架構 twMVC#18
專案分層架構 twMVC#18專案分層架構 twMVC#18
專案分層架構 twMVC#18
 
SignalR實戰技巧 twmvc#17
SignalR實戰技巧 twmvc#17 SignalR實戰技巧 twmvc#17
SignalR實戰技巧 twmvc#17
 
Angular js twmvc#17
Angular js twmvc#17Angular js twmvc#17
Angular js twmvc#17
 
TypeScript-twmvc#16
TypeScript-twmvc#16TypeScript-twmvc#16
TypeScript-twmvc#16
 
前端工程師與室內裝修師傅的相似之處-twMVC#16
前端工程師與室內裝修師傅的相似之處-twMVC#16前端工程師與室內裝修師傅的相似之處-twMVC#16
前端工程師與室內裝修師傅的相似之處-twMVC#16
 
開發的效能與效率-twMVC#15
開發的效能與效率-twMVC#15開發的效能與效率-twMVC#15
開發的效能與效率-twMVC#15
 
動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15
 
樞紐分析表之數據分析與統計-twMV#C14
樞紐分析表之數據分析與統計-twMV#C14樞紐分析表之數據分析與統計-twMV#C14
樞紐分析表之數據分析與統計-twMV#C14
 
輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14
 
MVC實戰分享 分頁與排序相關技巧-tw mvc#13
MVC實戰分享 分頁與排序相關技巧-tw mvc#13MVC實戰分享 分頁與排序相關技巧-tw mvc#13
MVC實戰分享 分頁與排序相關技巧-tw mvc#13
 
RWD不是你想的那樣 tw mvc#13
RWD不是你想的那樣 tw mvc#13RWD不是你想的那樣 tw mvc#13
RWD不是你想的那樣 tw mvc#13
 
ASP.NET MVC 善用網路資源快速完打造網站
ASP.NET MVC 善用網路資源快速完打造網站ASP.NET MVC 善用網路資源快速完打造網站
ASP.NET MVC 善用網路資源快速完打造網站
 
如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12
 
Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11
 
架構設計入門 twMVC#11
架構設計入門 twMVC#11架構設計入門 twMVC#11
架構設計入門 twMVC#11
 
ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10
 

開發與移轉 ASP.NET MVC 4.0 應用程式到 Windows Azure Platform -twMVC#5

  • 1. 開發 Windows Azure 雲端應用程式 小朱 (Windows Azure MVP)
  • 2.  小朱  Windows Azure MVP (11th MVP awards)  SQL Server, ASP.NET, Solution Architect, Windows Azure  技術傳教士、顧門口、研發人員、經理、講師、學生、開發人員、網 管、作者、譯者、校稿者、...  MCP: 11 類 50 張 ...  70% 來自於 beta,30% 來自於小朋友。  致力於雲端運算技術推廣與微軟技術深耕。 Read ME
  • 3.  Windows Azure Platform 簡介  開發 MVC-based Cloud 應用程式  Cloud Service  Website  Storage  Database  雲端架構學  結語 Agenda
  • 4. Windows Azure Platform 簡介  微軟的公有雲解決方案。  支援簡單到複雜的環境。  Website  Cloud Service  Virtual Machine  可用度 99% 以上。  支援多平台的開發應用。
  • 7.  Windows Vista 以上  建議 Windows 7 or Windows 8  必須安裝 IIS 功能,包含 .NET Framework 4.0 與 ASP.NET  Visual Studio 2010 SP1 以上  建議 Visual Studio 2012  SQL Server 2005 以上  建議 SQL Server 2012  支援 Express 和 Express LocalDB 開發環境
  • 8.  自動化安裝  Web Platform Installer 4.0 Customized Installation  手動安裝  Windows Azure SDK 1.7 (June 2012 Refresh)  依照服務的更新隨時升級。  文件在 MSDN Library  或安裝 Visual Studio 2012 Documentation (ISO) 開發環境
  • 9.  試用帳戶 (https://www.windowsazure.com/zh-tw/pricing/free-trial/)  90天免費試用期,需要 Microsoft Account (Live ID)。  需要信用卡,但只會在驗證時扣美金1元,而且不會請款。  在試用期間如果超過配額,會中斷服務。 註冊帳戶
  • 10.  正式帳戶  Pay-as-you-go  Promotional quotas  半年期或一年期方案。  MSDN Offers  BizSpark Offers  MPN Offers 註冊帳戶
  • 13. 雲端服務類型  Cloud Service  雲端專案。  Web Role/Worker Role。  每個服務享有獨立 VM。  適合複雜的環境。  Website  網站專案。  Web Role 的更新版。  依模式不同決定是否與他 人共享或專屬的 CPU 資源。  適合簡單的環境。
  • 14. demo  建立 MVC 4.0 應用程式。  存取資料庫。  存取表格儲存。  發行應用程式到雲端。  更新應用程式。
  • 15. demo  建立 MVC 4.0 應用程式。  存取資料庫。  存取表格儲存。  發行應用程式到雲端。
  • 16.  雲端應用程式與本地不同。  Hosting Only?  Single instance vs. Multiple instances  SQL and NoSQL  Tightly Coupled vs. Loosely Coupled  Multi-devices  本地思維 vs. 雲端思維。 雲端架構學
  • 17.  Cloud-enabled Application  充分運用雲端資源。  Computes  Storages  能適應 Scalability。  單一程式多用戶架構。  支援多重裝置。 雲端架構學
  • 18. StockTrader Sample Solution Web Application Layer (UI) UserInterface MiddleTier BusinessServicesDataAccess SQL Server/ SQL Azure Account Table Account Profile Table Orders Table Holdings Table Quote Table Data Access Layer (DAL) Market Summary Class Customer Class Orders Class Middle-Tier Business Services Layer (BSL)Business Service Layer Core StockTrader Services Classes Business Transactions Service Client Class Order Processor Service (OPS) Service Client Class Order Processing Service Class OrdersTier ASP.NET Web Forms Business Transactions
  • 19. StockTrader Sample Solution Web Role Azure StockTrader Web Application Worker Role Azure StockTrader Order Processor Service Web Role Azure StockTrader Business Services Account DB SQL Azure Scale-out InstancesScale-out Instances Scale-out Instances Quote DB SQL Azure RESTful Endpoint + Token Service Polling Publishing
  • 20.  Windows Azure Platform 是很容易使用的公有雲環境。  多樣化的服務。  使用既有的開發方式。  發行與移轉應用程式十分簡單。  設計雲端應用程式時,架構比技術更重要。 結語
  • 21.  Windows Azure Official Site  http://www.windowsazure.com/  MSDN Windows Azure Platform Documentation  https://www.windowsazure.com/en-us/develop/net/reference/  MSDN 邊做邊學  http://msdn.microsoft.com/zh-tw/windowsazure/gg456243.aspx  MSDN Windows Azure 實作手冊  http://msdn.microsoft.com/zh-tw/jj590639 參考資料 (官方)
  • 22.  小朱的技術隨手寫  http://www.dotblogs.com.tw/regionbbs/category/3312.aspx  StudyAzure.com 雲端學堂 Facebook  https://www.facebook.com/studyazure  Sky Chuang  http://www.dotblogs.com.tw/skychang/  Terry Chuang  http://www.dotblogs.com.tw/terrychuang/ 參考資料 (非官方)
  • 23.  Windows Azure 教戰手札  第一版在書店與網路都有在賣。  第二版即將於年底上市。  Developer Edition: 2012/12  IT PRO Edition: 2013/1  原文書  Programming Windows Azure (O’Reilly)  SOA with .NET and Windows Azure 參考資料 (書籍)
  • 24. http://mvc.tw 台灣 ASP.NET MVC 專業推廣團隊 本著作係採用 Creative Commons 姓名標示-非商業性-相同方式分享 3.0 台灣 (中華民國) 授權條款授權。