2. Windows Azure Overview
Cloud Service
Web Role
Worker Role
Virtual Machines
Web Sites
Virtual Network
Mobile Service
Media Service
3. VM and Cloud Service
Virtual Machines
IaaS
Load Balancing by Setting (from Portal)
Scale out need more actions
OS is maintain by your self
Provides Management API
Cloud Service
PaaS
Load Balancing by Auto
Scale out is simple and automation
OS, and software included will patching auto, you don’t need maintain
Provides Management API
54. About Partition key and row key
Table use Partition key and row key as Primary Key
Partition Key will help data partition
Appropriate use of Partition key will increase
performance for accessing Table Storage
62. Blob Storage
Blob Storage can store large data item
Blob Storage is durability and scalable
Blob Architecture
Account Container Blob
IMG001.JPG
pictures
IMG002.JPG
sally
movies MOV1.AVI
72. Why use CDN
CDN will deliver storage content to worldwide CDN
Servers
User access same CDN endpoint will redirect to near
CDN Server
I.e.:
User in East US will connect to East US CDN Server
User in East Asia will connect to East Asia CDN Server
73. Enable CDN on Storage Services
Back to Previous Portal
75. Enable CDN on Storage Services
CDN will take 60 minutes to activate
76. Changing URL of Resource link
Just change url from blob storage endpoint to CDN
endpoint
Like
http://res1026.blob.core.windows.net/imagecontainer/N
FpcWQ3H1THKOEHyGrjQGA.jpg
To
http://az412373.vo.msecnd.net/imagecontainer/NFpcWQ
3H1THKOEHyGrjQGA.jpg
77. Using CDN notes
Access static pictures/resources/javascripts
When storage is changed, CDN may need 72-hours to
refresh status
For real-time resources, use storage service instead
CDN
CDN will provides purged API in feature.
79. Introducing Windows Azure Caching
Provides general Caching Services
Provides two Cache Services
Role-base Caching
Shared Caching
support memcache protocol
Node.js
PHP
Java
80. About Co-located and Dedicated
Co-Located Caching
Use same Role memory to caching data
You should not use large memory for caching
Dedicated
Use another Role memory to caching data
In general , we will use all memory for caching
94. Default Sessions
Cloud Services will use Round-Robin to accomplish
load balance
In 2 Instances
the user first enter the page will direct to Instance A
We save some data in session
Then user click some button then will direct to instance
B
Session will not exists in Instance B (lost session)
116. Understanding startup.cmd
Startup.cmd like autoexec.bat, executing in VM start-up
You can do everything in here
Download something
Executing any executable file
Set Environment Variables
Just remember
This startup.cmd must end, so if you need execution
tomcat(startup.bat), you need use cmd /c to creating another
command line window
117. Understanding run.cmd
When startup.cmd is end, run.cmd will be executing
In samples, here will use
utilwhileproc.cmd java.exe
This command will keep detecting java is running or not
If java.exe is not in running status(not in process
explorer)
Fabric Controller will mark this VM is down
Switch to another VM
119. So….
Anything can be done in command line will also can
be done in Worker Role
So
You can use Play Framework
You can use other Web Server, like apache or Jboss
you can use Apache Lucene as Search Engine
137. Prepare
Install Ant
http://ant.apache.org/
Download Azure Start Kit for Java
https://github.com/MSOpenTech/WindowsAzureToolkitF
orEclipseWithJava
Make sure Antbin and java environment variables is
set.
152. Resources
Develop Center
http://www.windowsazure.com/en-us/develop/java/
Azure Caching
http://msdn.microsoft.com/en-
us/library/windowsazure/gg278356.aspx
My Blog
http://www.dotblogs.com.tw/code6421/