Sie sind auf Seite 1von 39

Cloud Computing: Windows Azure

2de Junio de 2011, 18:00-21:00


Dr. Diego Lz. de Ipia Glz. de Artaza
dipina@deusto.es
http://paginaspersonales.deusto.es/dipina
http://www.slideshare.net/dipina
http://www.morelab.deusto.es

1
Agenda
Windows Azure
Introduccin
Windows Azure Computing
Windows Azure Store
SQL Azure
Ejemplos

2
Microsoft Windows Azure
Windows Azure y SQL Azure permiten construir, alojar y
escalar aplicaciones en los centros de datos de Microsfot.
Como toda solucin para Cloud Computing slo pagas por los recursos
que usas
Es un sistema operativo en la nube
Centros de datos distribuidos por el planeta

3
Microsofts Windows Azure
Platform
Windows Azure es un servicio utilizado para ejecutar
aplicaciones y guardar datos en mquinas de Microsoft
accesibles va Internet
Proporciona tres componentes:
El servicio Compute ejecuta aplicaciones con web role y worker role
El servicio Storage permite guarda datos como blobs, tables y queues
El Windows Azure Fabric proporciona una API para gestionar y
monitorizar aplicaciones que usan la plataforma Azure
Ms informacin en:
http://www.microsoft.com/windowsazure

4
Microsofts Windows Azure Platform

5
Componentes de Windows Azure

6
Windows Azure Platform
Application Services

Software Services

Platform Services

Infrastructure Services
7
Soporte de Windows Azure

8
Dnde usar Cloud Computing?

9
Windows Azure por Dentro
Personal Data Application Information
Application Services Repository Marketplace Marketplace

Services Workflow Distributed


Frameworks Hosting Hosting Cache

Secure Token Declarative Claims-Based Federated


Security Service Policies Identity Identities

Composite On-Premise
Connectivity Service Bus
Applications Bridging

Relational ADO.NET, Data


Data Database ODBC, PHP
Transact-SQL
Synchronization

Compute C/C++
Win32 VHD

Unstructured Message Distributed Content


Storage Data
Blobs
Queues Filesystem Distribution

10
Windows Azure por Dentro
Application Services

Frameworks Dublin Velocity

Security Access Control Geneva

Project
Connectivity Service Bus Sydney

SQL Azure
Data Data Sync

Compute
Content
Storage Table Storage Blob Storage Queue Drive Delivery
Network

11
Windows Azure Cloud Fabric
Multiple virtual instances
Easy provision of applications
Detect failures
Spin up new instances to replace the failed ones
How many instances and what role they will play
Load balances and DNS
Elasticity of the service scaling up/down number of
instance

12
Windows Azure Compute
Development, service hosting, & management environment
.NET, Java PHP, Python, Ruby, native code (C/C++, Win32, etc.)
ASP.NET providers, FastCGI, memcached, MySQL, Tomcat
Full-trust supports standard languages and APIs
Secure certificate store
Management APIs, and logging and diagnostics systems
Multiple roles Web, Worker, Virtual Machine (VHD)
Multiple VM sizes
1.6 GHz CPU x64, 1.75GB RAM, 100Mbps network, 250GB volatile storage
Small (1X), Medium (2X), Large (4X), X-Large (8X)
In-place rolling upgrades, organized by upgrade domains
Walk each upgrade domain one at a time

13
Windows Azure Roles

14
Windows Azure Storage
Rich data abstractions tables, blobs, queues, drives, CDN
Capacity (100TB), throughput (100MB/sec), transactions (1K req/sec)
High accessibility
Supports geo-location
Language & platform agnostic REST APIs
URL: http://<account>.<store>.core.windows.net
Client libraries for .NET, Java, PHP, etc.
High durability data is replicated 3 times within a cluster,
and (Feb 2010) across datacenters
High scalability data is automatically partitioned and load
balanced across servers

15
Almacenamiento
Blobs Large Data Store
Queues Background work
processing
Tables Very Fast / Scalable
Storage
Drives NTFS Formatted Page
Blobs
SQL Azure Relational SQL in
the Cloud

16
Windows Azure Roles
Web Role
for web application programming in ASP.NET or PHP
single HTTP endpoint and a single HTTPS endpoint for external clients
Worker Role
for performing work on behalf of the web role
may be written in .NET, Ruby, Java
to improve scalability by increasing parallelism and asynchronicity
used for background work
internal endpoints for HTTP, TCP
may receive work from Windows Azure Storage Queues

17
Interaccin con el Resto de Azure
Web and Worker Roles
can make outbound HTTP/S or .NET Framework class
library socket connections to Internet accessible resources
can access Windows Azure Storage services via REST APIs
or the Windows Azure Storage Client Library

18
Windows Azure Data Storage
Tables
provides scalable, available, and durable structured (or semi-
structured) storage in the form of tables.
contain entities, and the entities contain properties.
are scalable to billions of entities and terabytes of data, and
may be partitioned across thousands of servers.
support ACID transactions over single entities and rich queries
over the entire table.
Simple and familiar .NET and REST programming interfaces
are provided via ADO.NET Data Services.
http://go.microsoft.com/fwlink/?LinkId=153401

19
Windows Azure Data Storage
Tables: Conceptos
Table contains a set of entities.
Entity (Row) Entities are the basic data items stored in a table.
Property (Column) This represents a single value in an entity.
PartitionKey The first key property of every table. The system uses this
key to automatically distribute the tables entities over many storage
nodes.
RowKey A second key property for the table. This is the unique ID of
the entity within the partition it belongs to.
Timestamp Every entity has a version maintained by the system.
Partition A set of entities in a table with the same partition key value.
Sort Order There is a single index provided for the CTP, where all entities
in a table are sorted by PartitionKey and then RowKey

20
Table Storage Concepts
Accounts Tables Entities

21
Queue Storage Concepts
Accounts Queues Messages

22
Blob Storage Concepts

Blocks
Account Container Blob
or Pages
PIC01.
JPG
images
PIC02.
JPG
Block or
sally Page 1

Block or
Page 2
movies MOV1.AVI
Block or
Page 3

23
SQL Azure
Highly available, scalable, and consistent distributed
relational database; geo-replication and geo-location
of data
Relational database, provided as a service
Highly symmetrical development and tooling experience
(use TDS protocol and T-SQL)
Highly scaled out, on commodity hardware
Built on the SQL Server technology foundation
Editions: Web (1GB), Business (10GB)

24
SQL Azure vs. Windows Azure
Tables
SQL Azure Tables:
Fully structured
Strongly typed
Relational (RDMS)
Highly scalable
Windows Azure Tables:
Semi-structured
Loosely typed
Non-Relational (Not RDMS)
Massively scalable
25
Probando Windows Azure
Free trial en: http://www.microsoft.com/windowsazure/free-trial/
El proceso de logeo requiere introducir nmero de tarjeta de crdito
Se requiere un login de Windows Live vlido

26
Windows Azure Dev Fabric
Local Developer Simulation of AppFabric
Simulated Cloud Experience for Development
Routes cloud requests to local machine
Simulates data storage with local SQL server database
Azure SQL simulated with local SQL Server database

Compute Storage Management Relational data Management Connectivity Access control

27
Herramientas para Desarrollo
Leverage Existing Skills in .NET, SQL Server, WCF
Use Familiar tools Visual Studio, SSMS
RESTful HTTP cloud services, supports PHP, Python
Cloud apps can be developed locally / offline
SDK Cloud Simulator Dev Fabric, Dev Storage
Descargarse Windows Azure SDK
http://www.microsoft.com/downloads/en/details.aspx?fa
milyid=7a1089b6-4050-4307-86c4-9dadaa5ed018

28
Windows Azure SDK
Se descarga de:
http://www.microsoft.com/windowsazure/sdk/
Dos opciones:
All-In-One installation
Se integra con Visual Studio
Standalone Windows Azure SDK
Mejor porque no requiere Windows Visual Studio
Existen SDKs para otros lenguajes como Java, PHP o
Ruby

29
Caractersticas del SDK
C# and VB Visual Studio project templates
Windows Azure Cloud Service solution with multiple roles.
Tools to manage and configure roles
Local Development Fabric
Local Development Storage services
Local Cloud Service debugging support
Cloud Service package and deployment builder

30
Tutorial de Cmo Usar Windows
Azure
Documentacin en: http://msdn.microsoft.com/en-
us/WAZPlatformTrainingCourse_IntroToWindowsAzureLabVS2
010
Explores the basic elements of a Windows Azure service by creating a
simple GuestBook application that demonstrates many features of the
Windows Azure platform, including web and worker roles, blob
storage, table storage, and queues
Windows Azure Management Portal
https://windows.azure.com/
Cloud Samples:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=285
3c3dc-0586-49c7-9b7f-83d3083252c8&displaylang=en

31
Comparativa AWS, GAE y Azure
AWS es IaaS pero cada vez con ms caractersticas de PaaS
GAE y Azure son PaaS que permiten la creacin de aplicaciones (GAE slo
web) en la infraestructura Cloud de Google y Microsoft, respectivamente
AWS te permite usar tus herramientas favoritas, aunque recomienda su
uso de servicios escalables de almacenamiento, bases de datos o
mensajes a travs de interfaces REST
GAE es muy sencillo pero exige el uso de las APIs exclusivas provistas por
Google, aunque estn basadas en estndares de facto de la industria
Azure no limita el uso de .NET para las aplicaciones desplegadas aunque lo
promociona
Comparativa detallada en: http://blog.kitetail.com/wp-
content/uploads/2010/03/Comparison-CloudOffering.pdf

32
Patrones de Diseo en Cloud
Computing
Fuente: http://architects.dzone.com/news/cloud-
computing-patterns
1. Usar la nube para el escalado
Usar en cada momento slo los recursos necesarios
Dos mecanismos:
Passive listener model
Active worker model
2. Compartir la nube entre varios usuarios

33
Patrones de Diseo en Cloud
Computing
3. Usar la nube para batch processing

4. Usar la nube para almacenamiento


5. Usar la nube para comunicacin

34
Ventajas de Cloud Computing
Ahorros de costes en IT empresariales
Ordenadores de bajo coste para los usuarios
Costes ms bajos en infraestructura IT
Costes de software ms bajos
Mejora del rendimiento global
Elasticidad para conseguir una escalabilidad superior
Menos problemas en mantenimiento
Actualizaciones inmediatas de software
Capacidad de almacenamiento ilimitada
Incremento de la seguridad de los datos (safety)
35
Desventajas de Cloud Computing
Requiere una conexin a Internet continua y rpida
Puede ofrecer bastante latencia
Caractersticas disponibles todava limitadas
Falta de confianza
Los datos guardados pueden ser accedidos por otros
Nuestros datos ya no estn en la empresa
Problemas legales (LODP): Safe Harbor
Dependencia tecnolgica en otras compaas ajenas
Si la nube pierde los datos, ests perdido!

36
Conclusiones
Cloud Computing nos ofrece un nuevo paradigma para alojar nuestros sistemas de
informacin, aplicaciones y datos en la nube de Internet
Son muchas las ventajas potenciales de este enfoque
Ahorro de costes, pago por uso
Escalabilidad exponencial
PERO tambin muchos los riesgos para su implantacin global inmediata
Falta de control sobre nuestros datos y sistemas
Relativa baja madurez de los productos que hacen posible Cloud Computing
Ahora estn surgiendo las herramientas y plataformas, pero tenemos que trabajar
en patrones de diseo para asegurarnos buenas prcticas en Cloud Computing
El futuro inmediato de los sistemas de informacin empresarial combinar los
enfoques tradicionales, donde los sistemas y datos se ejecutan en infraestructura
propia, con un paulatino e incremental despliegue de datos y aplicaciones a la
nube.

37
Referencias
Windows Azure Platform
http://www.microsoft.com/windowsazure/
Windows Azure SDK
http://www.microsoft.com/windowsazure/getstarted/#wa
Windows Azure Introduction
http://www.slideshare.net/lynnlangit/windows-azure-introduction-3337040
http://www.slideshare.net/lynnlangit/windows-azure-platform-2626957
Introducing the Azure Platform
http://davidchappellopinari.blogspot.com/2008/10/introducing-azure-services-
platform.html

38
Cloud Computing: Microsoft Windows Azure
2de Junio de 2011, 18:00-21:00
Dr. Diego Lz. de Ipia Glz. de Artaza
dipina@deusto.es
http://paginaspersonales.deusto.es/dipina
http://www.slideshare.net/dipina
http://www.morelab.deusto.es

39

Das könnte Ihnen auch gefallen