[Code Camp 2009] Cloud Computing - Explorando Windows Azure Services (Carlos Peix + José Mariano Álvarez)
Upcoming SlideShare
Loading in...5

Like this? Share it with your network


[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)

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



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



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.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
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) Presentation Transcript

  • 1. Explorando Windows AzureServices
    Ing. Jose Mariano Alvarez
    SQL Total Consulting
    Ing. Carlos Peix
    Chief Geek
  • 2. Cloud Computing
    La computación en nube es una tecnología que permite ofrecer servicios de computación a través de Internet.
  • 3. Azureservices
  • 4. Plataforma Windows Azure
    Base de datos
    Control de acceso
  • 5. ¿Qué es Azure?
  • 6. 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
  • 7. Windows Azure
  • 8. Compute
    • .NET 3.5 SP1
    • 9. Server 2008 – 64bit
    • 10. Full Trust*
    • 11. Web Role
    • 12. IIS7 Web Sites (ASP.NET, FastCGI)
    • 13. Web Services (WCF)
    • 14. Worker Role
    • 15. Servidores sin estado
    • 16. Http(s)
    Windows Azure
  • 17. Developer
    Windows Azure
    • Durable, escalable, disponible
    • 18. Blobs
    • 19. Tables
    • 20. Queues
    • 21. REST interfaces
  • 22. Servicio
    Worker Service
    Worker role
    Web Site
    Web Site
    Web role
    (ASPX, WCF)
  • 23. 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)
  • 24. Blobs
    0..N Blobs por Containers
    0..N Containers por cuenta
    El alcance es a nivel de container
    Capacidad 50GB (CTP)
    Privados o públicos
    Utilizar Blobs donde usábamos archivos
  • 25. Queues
    Simple Cola de envío asincrónica
    Tamaño máximo 8kb
  • 26. 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
  • 27. 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
  • 28. Consideraciones de diseño
    Escalabilidad y disponibilidad son mas importantes.
    El almacenamiento NO es relacional.
    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.
  • 29. Demo
  • 30. SQL Azure
  • 31. Extending SQL Data Platform to Cloud
    Reference Data
    Business Intelligence
    Data Sync
    SQL Azure Database
    Symmetric Programming Moel
    Data Hub Aggregation
  • 32. Evolución de SQL Azure
    ODBC, OLEDB, ADO.Net PHP, Ruby, …
    REST Client
    SQL Client*
    REST Client
    Windows Azure
    REST (Astoria)
    Web App
    ADO.Net + EF
    REST Client
    Windows Azure
    Web App
    SQL Client*
    Data Center
    Data Center
    TDS + TSQL Model
    REST/SOAP + ACE Model
    SQL Azure
  • 33. Opciones de bases de datos
    Value Props:
    Full h/w control – size/scale
    100% compatibility
    Roll-your-own HA/DR/scale
    Value Props:
    Auto HA, Fault-Tolerance
    Friction-free scale
    High compatibility
    SQL Server or other s/w on-premise
    Resource governance @ machine
    Security @ DB Server/OS
    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
    Objetivo de SQL AzureV1
  • 34. SQL AzureDeployment
    Web Portal
    DB Script
    SQL Azure
  • 35. SQL AzureAcceso
    Web Portal
    Your App
    SQL Azure
    Change Connection String
  • 36. Database Replicas
    Single Database
    Multiple Replicas
    Replica 1
    Single Primary
    Replica 2
    Replica 3
  • 37. Demo
  • 38. Ejemplos de Compatibilidad
    Alcancepara v1
    Fuera de alcancepara v1
    Tables, indexes,views
    Stored Procedures
    Table variables, session temp tables (#t)

    Distributed Transactions
    Distributed Query
    Service Broker
    Physical server or catalog DDL and views
  • 39. Administración lógica vs física
    SQL Azure se focaliza en la administración lógica
    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
  • 40. Más Información
    Windows Azure Platformhttp://www.azure.com/
    Todos los artefactos de la presentaciónhttp://code.assembla.com/prx-guamini/subversion/nodes/trunk
  • 41. ¿Preguntas?