java on azure
TRANSCRIPT
Java on Azure
Anders Lybecker@AndersLybecker | [email protected]
Azure
footprint
Azure datacenter
regions open for
business this month
Datacenter buildings are about one football field in size
…large enough to hold two jumbo jets
That’s up to 600,000 servers in each Azure region
And there are 16 building per region…
Global Presence and Scale
Major datacenter
CDN node
Live sub-region
Announced sub-region
Partner-operated sub-region
Announced
Fortune 500 using Azure
>57% >300kActive websites
More than
1,000,000SQL Databases in Azure
>30TRILLIONstorage objects >300 MILLION
AAD users
>13 BILLIONauthentication/wk>3
MILLIONrequests/sec
>1.65MILLIONDevelopers registered
with Visual Studio Online
$
= = $
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
Page Load Time
Page Abandonment by Load Time
< 1 sec 1 sec 2 sec 3 sec 4 sec+
Source: Forrester Consulting on behalf of Akamai Technologies, July 2009
Transform existing networks into a pooled, automated resource. Enable software to dynamically optimize the network as per application/workload requirements, including flexible placement and mobility across clouds.
=
demand
max capacity
+
unused resources
+
max capacity
demand
unused resources
max capacity
The ability to provision and deprovisionresources automatically to meet point-in-time demand as closely as possible.
>>
www.contoso.com
On Premises
Yo
u s
cale
, m
ake r
esi
lien
t an
d m
an
ag
e
Infrastructure(as a Service)
Man
ag
ed
by v
en
do
r
Yo
u s
cale
, m
ake
resi
lien
t &
man
ag
e
Platform (as a Service)
Sca
le, re
silien
ce a
nd
man
ag
em
en
t b
y v
en
do
r
Yo
u m
an
ag
e
Hosting models
Software(as a Service)
Business model
Applications
Sca
le, re
silien
ce a
nd
man
ag
em
en
t b
y v
en
do
r
Choose your model
vsSearch
Azure is Open Across the Stack
Languages
CMS
Devices
Databases
Operating systems
Microsoft 1st Party Support Ecosystem Supported
Azure compliance audits and certifications
ISO/IEC 27001
HIPAA(Healthcare)
European UnionModel Clause
FedRAMP
PCI DSS L1 version 3SOC 1 SOC 2
Criminal Justice Information System
Defense Information Systems Agency L2
China Multi Layer Protection
Scheme
Sarbanes Oxley
ChinaCCCPPF
ITAR
FIPS 140-2
United Kingdom G-Cloud
Life Sciences GxPFamily Educational Rights and Privacy Act
SingaporeMulti-Tier Cloud
Security
Global
United States
Regional
Coming soon
Defense Information Systems Agency L3-5
Australian Signals Directorate I-RAP
Assessment
ISO / IEC 27018
Cloud Security AllianceCloud Security Matrix
Azure SDK for Java
• Java libraries for Azure ( storage, table, queue etc)
• Full command line support
• Eclipse Azure plugin
• Maven support
pom.xml<dependency>
<groupId>com.microsoft.azure</groupId><artifactId>azure-management</artifactId><version>n.n.n</version>
</dependency><dependency>
<groupId>com.microsoft.azure</groupId><artifactId>azure-management-compute</artifactId><version>n.n.n</version>
</dependency>…<dependency>
<groupId>com.microsoft.azure</groupId><artifactId>azure-serviceruntime</artifactId><version>n.n.n</version>
</dependency>
http://azure.microsoft.com/en-us/documentation/articles/java-download-windows/
Create a Site with Command Line
• Need to be authenticated and logged in ( azure login)
• Mac/Linux: azure site create mySiteName
• PowerShell: New-AzureWebSite mySiteName
[-Location <location name>]
[-Hostname <custom host name>]
Demo
Configuring Java
• General stuff– Azure portal
Custom Configurations
• How-tohttp://azure.microsoft.com/en-us/documentation/articles/web-sites-java-custom-
upload/
Demo
Debugging Applications
• Enable debugging!
• You can FTP to these log files, or you can tail them using the
Azure SDK – azure site tail log siteName
– Get-AzureWebsiteLog [siteName] –tail
• Visual Studio Online “Monaco”
• JDWP compatible debugger– https://github.com/Azure/azure-websites-java-remote-debugging
35
Azure Storage
Highly durable and scalable
Multiple copies of your data
Financially backed SLAs
Storage for objects, tables, drives
Supports REST APIs
Windows Azure StorageDefend against regional disasters.
Two Types of Blobs Under the Hood
Blob Storage Concepts
http://azure.microsoft.com/en-us/documentation/articles/storage-php-how-to-use-blobs/
Table Storage
255 properties
Max size 1 MB
Very fast!
PartionKey and RowKey
http://azure.microsoft.com/en-us/documentation/articles/storage-php-how-to-use-table-storage/blobs/
Storage Account: All access to Azure Storage is done through
a storage account.
Queue: A queue contains a set of messages.
Message: A message, in any format, of up to 64KB.
Queue Components
• Synchronize your corporate and 3rd party identities
• Integration with O365
• Support modern protocols• OAuth 2.0
• OpenID Connect
• WS-Fed
• SAML 2.0
• Identity and Access Mgmt Permissions• Users
• Groups
• Applications
Microsoft Azure Active Directory
3rd party clouds/hostingMicrosoft
Azure AD
Yo
u
Resources
• Java Docs – http://azure.microsoft.com/en-us/develop/java/
• JavaDocs SDK– http://dl.windowsazure.com/javadoc/
• Developer newsletter
– Aka.ms/nyhedsbrev
• Start-up? Like free software and Azure Credits?– www.bizspark.com
Get startedVisit azure.microsoft.com
©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
… and more fun.