• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
[Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez)
 

[Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez)

on

  • 721 views

[Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez)

[Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez)

Statistics

Views

Total Views
721
Views on SlideShare
721
Embed Views
0

Actions

Likes
0
Downloads
29
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • This is the exploding cloud diagram
  • Windows Azure runs on Windows Server 2008 running .NET 3.5 SP1. At MIX09, we opened up support for Full Trust and FastCGI. Full Trust is starred here because while Full Trust gives you access to p/invoke into native code, it is code that still runs in user mode (not administrator). However, for most native code that is just fine. If you wanted to call into some Win32 APIs for instance, it might not work in all instances because we are not running your code under a system administrator account.There are 2 roles in playA web role – which is just a web site, asp.net, wcf, images, css etc.A worker role – which is similar to a windows service, it runs in the background and can be used to decouple processing. There is a diagram later that shows the architecture, so don’t worry about how it fits together just yet.Key to point out the inbound protocols are HTTP & HTTPS – outbound are any TCP Socket, (but not UDP).All servers are stateless, and all access if through load balancers.
  • This should give a short introduction to storage. Key points are its durable (meaning once you write something we write it to disk), scalable (you have multiple servers with your data), available (the same as compute, we make sure the storage service is always running – there are 3 instances of your data at all times).Quickly work through the different types of storage:Blobs – similar to the file system, use it to store content that changes, uploads, unstructured data, images, movies etc.Tables – Semi-structured, provides a partitioned entity store (more on partitions etc. in the Building Azure Services Talk) – allows you to have tables containing billions of rows, partitioned across multiple servers.Queues – Simple queue for decoupling Computer Web and Worker Roles.All access is through REST interface. You can actually access the storage from outside of the data center (you don’t need compute) and you can access storage via anything that can make a HTTP request.It also means table storage can be accesses via ADO.NET Data Services.
  • In this next section, we’ll dig a little deeper on storage.Recall there are 3 types of storage.Recall the design point is for the cloud, there are 3 replicas of data, and we implement guaranteed consistency. In the future there will be some transaction support and this is why we use guaranteed consistency.Access is via a storage account – you can have multiple storage accounts per live id.Although the APU is REST, there is a sample .net storage client in the SDK that you can compile and use within your project. This makes working with storage much easier.
  • BlobsBlobs are stored in containers. There are 0 or more blobs per container and 0 or more containers per account. (since you can have 0 containers, but then you would not have any blobs either)Typically url in the cloud is http://accountname.blob.core.windows.net/container/blobpathBlob paths can contain the / character, so you can give the illusion of multiple folders, but there is only 1 level of containers.Blob capacity at CTP is 50gb.There is an 8k dictionary that can be associated with blobs for metadata.Blobs can be private or public:Private requires a key to read and writePublic requires a key to write, but NO KEY to read.Use blobs where you would use the file system in the past.
  • Queues are simple:Messages are placed in queues. Max size is 8k (and it’s a string)Message can be read from the queue, at which point it is hidden.Once whatever read the message from the queue is finished processing the message, it should then remove the message from the queue. If not the message is returned to the queue after a specific user defined time limit. This can be used to handle code failures etc.
  • Tables are simply collections of Entities.Entites must have a PartitionKey and RowKey – can also contain up to 256 other properties.Entities within a table need not be the same shape! E.g.:Entity 1: PartitionKey, RowKey, firstnameEntity 2: PartitionKey, RowKey, firstname, lastnameEntity 3: PartitionKey, Rowkey, orderId, orderData, zipCodePartitions are used to spread data across multiple servers. This happens automatically based on the partition key you provide. Table “heat” is also monitored and data may be moved to different storage endpoints based upon usage.Queries should be targeted at a partition, since there are no indexes to speed up performance. Indexes may be added at a later date.Its important to convey that whilst you could copy tables in from a local data source (e.g. sql) it would not perform well in the cloud, data access needs to be re-thought at this level. Those wanting a more traditional SQL like experience should investigate SDS.
  • Once you have built and tested your service, you will want to deploy it.The key to deployment and operations is the service model.To deploy – first you build your service, this takes the project output + Content (images, css etc.) and makes a single file. It also creates and instance of your service metadata.Next you would visit the web portal and upload the 2 solution files – from there the “cloud” takes care of deploying it onto the correct number of machines and getting it to run.To increase and decrease capacity today, you would edit the configuration from the web portal.For more than 1 instance, you should be deployed across fault domains, meaning separate hardware racks.In the portal you have a production and staging area, with different urls. You can upload the next version of your project into staging, then flip the switch – which essentially changes the load balancers to point to the new version.
  • Some key things to rememberDesign points are scalability and availability – think it terms of lots of small servers rather than a single BIG server.Table storage is semi-structured – ITS NOT A RELATIONAL DATABASE – IT NEVER WILL BE. THAT IS SDS.Everything is stateless (you can maintain state in table or blob storage if YOU want to)Decouple everything using queues, and write code to be repeatable without breaking anything – in other words design for failure!Instrument and log your application yourself.Work on the idea that once you are on – stay on.How will you patch/update your service once it is switched on?
  • The step-by-step demo script for this demo is included in the Azure Services Training Kit. DEMO SCRIPT: Connecting to SQL AzureDEMO SCRIPT: Creating Objects in SQL Azure

[Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez) [Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez) Presentation Transcript

  • Explorando Windows AzureServices
    Ing. Jose Mariano Alvarez
    CTO
    SQL Total Consulting
    Ing. Carlos Peix
    Chief Geek
    Praxia
  • Cloud Computing
    La computación en nube es una tecnología que permite ofrecer servicios de computación a través de Internet.
  • Azureservices
  • Plataforma Windows Azure
    Computación
    Almacenamiento
    Gestión
    Base de datos
    Serviciosgenerales
    Control de acceso
  • ¿Qué es Azure?
  • Un sistema operativo para la nube
    Abstracción de Hardware de múltiples servidores
    Almacenamiento distribuido escalable y altamente disponible
    Gestión automática del servicio, Balanceo de carga
    Interoperable (REST)
    Sin licencia, costo por servicio utilizado
    Datacenters operados por Microsoft
  • Windows Azure
    Compute
    Storage
    Developer
    SDK
  • Compute
    • .NET 3.5 SP1
    • Server 2008 – 64bit
    • Full Trust*
    • Web Role
    • IIS7 Web Sites (ASP.NET, FastCGI)
    • Web Services (WCF)
    • Worker Role
    • Servidores sin estado
    • Http(s)
    Storage
    Developer
    Tools
    Windows Azure
  • Developer
    Tools
    Windows Azure
    Storage
    • Durable, escalable, disponible
    • Blobs
    • Tables
    • Queues
    • REST interfaces
    Compute
  • Servicio
    Arquitectura
    Worker Service
    Worker role
    Internet
    LB
    Tables
    Almacenamiento
    Web Site
    (ASPX, ASMX, WCF)
    Web Site
    (ASPX, ASMX, WCF)
    Web role
    (ASPX, WCF)
    LB
    Queue
    Blobs
  • Almacenamiento
    Blobs, Tables, Queues
    Diseñado para la nube
    3 replicas
    Consistencia garantizada
    Accesible por internet mediante REST API
    Multiples storage account
    Storage Client en el SDK (Helper)
  • Blobs
    0..N Blobs por Containers
    0..N Containers por cuenta
    El alcance es a nivel de container
    http://accountname.blob.core.windows.net/container/blobpath
    Capacidad 50GB (CTP)
    Privados o públicos
    Utilizar Blobs donde usábamos archivos
  • Queues
    Simple Cola de envío asincrónica
    Mensajes
    Tamaño máximo 8kb
    Operaciones:
    Enqueue
    Dequeue
    RemoveMessage
  • Tables
    Entidades y propiedades (filas & columnas)
    El alcance es por cuenta
    Diseñada para miles de millones
    Escala hacia afuera mediante particiones
    Partition key y row key
    Operaciones realizadas en particiones
    Consultas eficientes
    No hay límite en el número de particiones
    ADO.NET Data Services
  • Ciclo de vida de la aplicación
    Crear paquete de (publish)
    Binario + Contenido + Metadata
    Deployvia web portal
    Agregar y quitar capacidad viametadata
    Se actualiza sin perdidad de servicio durante la actualización
    No se puede usar un Debugger en la nube
    Eventlogs vía web
  • Consideraciones de diseño
    Escalabilidad y disponibilidad son mas importantes.
    El almacenamiento NO es relacional.
    Stateless
    No existe Session ni Application, pero hay providers basados en storage.
    Usar el colas para desacoplar procesamiento.
    Cuando se pone en línea, queda en línea.
    Hay que pensar dos veces en los mecanismos de actualizacion.
  • Demo
  • SQL Azure
  • Extending SQL Data Platform to Cloud
    Reference Data
    Business Intelligence
    Data Sync
    Reporting
    SQL Azure Database
    Symmetric Programming Moel
    Data Hub Aggregation
  • Evolución de SQL Azure
    Evoluc
    BrowserApplication
    Application
    Application
    BrowserApplication
    Application
    ODBC, OLEDB, ADO.Net PHP, Ruby, …
    REST Client
    SQL Client*
    REST Client
    Cloud
    Cloud
    Windows Azure
    REST (Astoria)
    Web App
    ADO.Net + EF
    REST Client
    HTTP+REST
    HTTP+REST
    HTTP
    TDS
    HTTP
    Windows Azure
    Web App
    SQL Client*
    Data Center
    Data Center
    TDS + TSQL Model
    REST/SOAP + ACE Model
    SQL Azure
    OLD SDS
  • Opciones de bases de datos
    Value Props:
    Full h/w control – size/scale
    100% compatibility
    Roll-your-own HA/DR/scale
    Dedicados
    On-premise
    Value Props:
    Auto HA, Fault-Tolerance
    Friction-free scale
    Self-provisioning
    High compatibility
    SQL Server or other s/w on-premise
    Resource governance @ machine
    Security @ DB Server/OS
    Recursos
    Hosted
    Hosted SQL Server or other
    Resource governance @ VM
    Security @ DB Server/OS
    SQL Azure (RDBMS)
    Virtual DB server
    Resource governance @ LDB
    Security @ LDB
    Value Props:
    100% of API surface area
    Roll-your-own HA/DR/scale
    Compartidos
    Objetivo de SQL AzureV1
    Bajo
    Control
    Alto
  • SQL AzureDeployment
    Web Portal
    (API)
    DB Script
    SQL Azure
    TDS
  • SQL AzureAcceso
    Web Portal
    (API)
    Your App
    SQL Azure
    TDS
    Change Connection String
  • Database Replicas
    Single Database
    Multiple Replicas
    Replica 1
    Single Primary
    Replica 2
    DB
    Replica 3
  • Demo
  • Ejemplos de Compatibilidad
    Alcancepara v1
    Fuera de alcancepara v1
    Tables, indexes,views
    Stored Procedures
    Triggers
    Constraints
    Table variables, session temp tables (#t)

    Distributed Transactions
    Distributed Query
    CLR
    Service Broker
    Spatial
    Physical server or catalog DDL and views
  • Administración lógica vs física
    SQL Azure se focaliza en la administración lógica
    Schemas
    Optimización de Query
    Gestión de seguridad (Logins, Users, Roles)
    El servicio realiza la gestión física
    Alta disponibilidad “out of box”
    Load balancing
  • Más Información
    Windows Azure Platformhttp://www.azure.com/
    Assemblahttps://www.assembla.com/wiki/show/prx-guamini
    Todos los artefactos de la presentaciónhttp://code.assembla.com/prx-guamini/subversion/nodes/trunk
    Blogshttp://blog.josemarianoalvarez.com/http://blog.carlospeix.com/
  • ¿Preguntas?