msp techday 2011 - windows azure storage service

22
Windos Azure Storag Service Vitor Meriat

Upload: vitor-meriat

Post on 13-May-2015

325 views

Category:

Technology


0 download

DESCRIPTION

Palestra realizada no dia 24-09-2011 para o evento MSP TechDay.

TRANSCRIPT

Page 1: Msp TechDay 2011 - Windows Azure Storage Service

Windos Azure Storag Service

Vitor Meriat

Page 2: Msp TechDay 2011 - Windows Azure Storage Service

Vitor MeriatMicrosoft Student Partners

[email protected] @vitormeriat http://pablohadler.com/blog

Page 3: Msp TechDay 2011 - Windows Azure Storage Service

Agenda

• Overview da plataforma azure• Storage (Blobs/Tables/Queue)• Demos

Page 4: Msp TechDay 2011 - Windows Azure Storage Service

Download de Phone http://bit.ly/oeK9Dh

Download SDK de Azure http://bit.ly/peAhlL

Download de WebMatrix http://bit.ly/webmatrixbr11

Centro de Treinamento TechNet http://bit.ly/q9dVvH

Centro de Treinamento MSDN http://bit.ly/mSQHce

Portal:windows.azure.com

Page 5: Msp TechDay 2011 - Windows Azure Storage Service

TIME

IT C

AP

AC

ITY

Actual Load

Allocated IT-capacities

Too Much Power

Not Enough Power

Load Forecast

Page 6: Msp TechDay 2011 - Windows Azure Storage Service

Actual Load

Capacity on Demand

Lower Capex

No capital laying idle

No screaming customers

Knob goes up...

And...down

TIME

IT C

AP

AC

ITY

Load Forecast

Page 7: Msp TechDay 2011 - Windows Azure Storage Service

Cloud Services

Software

Consumidor

“SaaS”

Plataforma

DEVS

“PaaS”

Infra como Serviço

HOSTS

“IaaS”

Page 8: Msp TechDay 2011 - Windows Azure Storage Service

Cloud Services

Pacotes Software

Storage

Servers

Networking

O/S

Middleware

Virtualization

Data

Applications

Runtime

You m

anag

e

Infra(as a Service)

Storage

Servers

Networking

O/S

Middleware

Virtualization

Data

Applications

Runtime

Manag

ed b

y v

en

dor

You m

anag

e

Plataforma(as a Service)

Manag

ed b

y v

en

dor

You

manage

Storage

Servers

Networking

O/S

Middleware

Virtualization

Applications

Runtime

Data

Software(as a Service)

Manag

ed b

y v

en

dor

Storage

Servers

Networking

O/S

Middleware

Virtualization

Applications

Runtime

Data

Page 9: Msp TechDay 2011 - Windows Azure Storage Service

Windows Azure Platform

Scala e Armazenamento(Storage)Gerencia de ServiçosFerramentas/Linguagens

Banco Relacional para NuvemModelo de Desenvolvimento ConsistenteGerenciamento de Bancos

Conectar a apps na nuvemConecte com outras redes.Controle de autorizacao na nuvem

Page 10: Msp TechDay 2011 - Windows Azure Storage Service

Windows Azure

Windows Azure

O Sistema Operacional da Nuvem

Virtual NetworkCompute Storage

Page 11: Msp TechDay 2011 - Windows Azure Storage Service

Hello Windows Azure

demo

Page 12: Msp TechDay 2011 - Windows Azure Storage Service

Windows Azure Storage

• Scalavel– 100tb por conta de Storage– Preparado para auto Volumes de Dados

• Acessível via RESTful Web Service API– Acesso do Windows Azure Compute– Acesso do anywhere via internet– Suporte .NET Client Library

• Tipo de storage– Table – Grupos de Entidades (name/value pairs)– Queue - Fila de mensagens simples não-transacional– Blob - Large binary storage – Drives - NTFS VHD montado na instancia de computação.

Page 13: Msp TechDay 2011 - Windows Azure Storage Service

Tables

Page 14: Msp TechDay 2011 - Windows Azure Storage Service

Conceitos

EntityTableAccount

contoso

customers

Name =…Email = …

Name =…EMailAdd= …

photos

Photo ID =…Date =…

Photo ID =…Date =…

Page 15: Msp TechDay 2011 - Windows Azure Storage Service

Detalhes

• Não é RDBMS!

• Tabela(Table)– Create, Query, Delete– Podem ter Metadados

• Entidades– Insert– Update

• Merge Atualização Parcial• Replace – Atualização toda Entidade

– Delete– Query– Grupo de Transações entidade

Múltiplas operações CUD em uma única transação atômica

Page 16: Msp TechDay 2011 - Windows Azure Storage Service

Entity Properties

• Entity can have up to 255 properties• Up to 1MB per entity

• Mandatory Properties for every entity• PartitionKey & RowKey (only indexed properties)• Uniquely identifies an entity• Defines the sort order• Timestamp • Optimistic Concurrency. Exposed as an HTTP ETag

• No fixed schema for other properties• Each property is stored as a <name, typed value> pair• No schema stored for a table• Properties can be the standard .NET types • String, binary, bool, DateTime, GUID, int, int64, and double

Page 17: Msp TechDay 2011 - Windows Azure Storage Service

Nome SobreNome Aniversario

Kim Akers 2/2/1981

Nancy Anderson 3/15/1965

Mark Hassall May 1, 1976

Robbie

Futebol

Dados sem schema

Page 18: Msp TechDay 2011 - Windows Azure Storage Service

Nome SobreNome Aniversario

Kim Akers 2/2/1981

Nancy Anderson 3/15/1965

Mark Hassall May 1, 1976

Querying

?$filter=Last eq ‘Akers’

Page 19: Msp TechDay 2011 - Windows Azure Storage Service

Purpose of the PartitionKey

• Entity Locality– Entities in the same partition will be stored together

– Efficient querying and cache locality– Endeavour to include partition key in all queries

• Entity Group Transactions– Atomic multiple Insert/Update/Delete in same partition in a single

transaction

• Table Scalability• Target throughput – 500 tps/partition, several thousand tps/account

– Windows Azure monitors the usage patterns of partitions– Automatically load balance partitions

– Each partition can be served by a different storage node– Scale to meet the traffic needs of your table

Page 20: Msp TechDay 2011 - Windows Azure Storage Service

PartitionKey(Category)

RowKey(Title)

Timestamp ModelYear

Bikes Super Duper Cycle … 2009

Bikes Quick Cycle 200 Deluxe … 2007

… … … …

Canoes Whitewater … 2009

Canoes Flatwater … 2006

PartitionKey(Category)

RowKey(Title)

Timestamp ModelYear

Rafts 14ft Super Tourer … 1999

… … … …

Skis Fabrikam Back Trackers … 2009

… … … …

Tents Super Palace … 2008

PartitionKey(Category)

RowKey(Title)

Timestamp ModelYear

Bikes Super Duper Cycle … 2009

Bikes Quick Cycle 200 Deluxe … 2007

… … … …

Canoes Whitewater … 2009

Canoes Flatwater … 2006

Rafts 14ft Super Tourer … 1999

… … … …

Skis Fabrikam Back Trackers … 2009

… … … …

Tents Super Palace … 2008

Partitions and Partition Ranges

Server BTable = Products[Canoes - MaxKey)

Server ATable = Products[MinKey - Canoes)

Server ATable = Products

Page 21: Msp TechDay 2011 - Windows Azure Storage Service

Vitor MeriatMicrosoft Student Partners

[email protected] @vitormeriat http://pablohadler.com/blog

Perguntas?

Page 22: Msp TechDay 2011 - Windows Azure Storage Service