74
Azure Data Overview Marcelo Paiva Desenvolvedor Microsoft Azure

GWAB 2015 - Data Plaraform

Embed Size (px)

Citation preview

Page 1: GWAB 2015 - Data Plaraform

Azure Data OverviewMarcelo PaivaDesenvolvedor

Microsoft Azure

Page 2: GWAB 2015 - Data Plaraform

SQL Database

SQL Server VM

DocumentDB

Search HDInsight Additional databases

Microsoft Azure Data Platform

Page 3: GWAB 2015 - Data Plaraform

SQL Database

SQL Server VM

DocumentDB

Search

Microsoft Azure Data Platform

Page 4: GWAB 2015 - Data Plaraform

IaaSPhysical Virtual PaaS

From private to public Cloud

Microsoft Relational Storage Options

A Continuous offering

Page 5: GWAB 2015 - Data Plaraform

Architecture

Microsoft Azure SQL Database

Starting with the basics

Page 6: GWAB 2015 - Data Plaraform

A Server is not a machine

SQL Server

Machine

AzureSQL

Database

Server

TDS Endpoin

t

(Physical/VM)

Page 7: GWAB 2015 - Data Plaraform

SQL Server database technology “as a Service”Fully ManagedEnterprise-ready with automatic support for HA, DR, Backups, replication and more

SQL Database – The Basics

Page 8: GWAB 2015 - Data Plaraform

Scale out with ElasticScaleBuilt-in regional database replicas for additional protectionUptime SLA of 99.99%

SQL Database – The Basics

Page 9: GWAB 2015 - Data Plaraform

Applications communicate directly with SQL Database using TDS.

How It Works – Architecture of the Service Client Layer

PHPWCF Data Services

SQL ServerApplications

and Tools

ODBC ADO.NET

Tabular Data Stream (TDS)

Page 10: GWAB 2015 - Data Plaraform

Gateway between Client layerand Platform layer.

How It Works – Architecture of the Service Client Layer

PHPWCF Data Services

SQL ServerApplications

and Tools

ODBC ADO.NET

Tabular Data Stream (TDS)

Services Layer

Provisioning

Billing and Metering

Connection Routing

TDS+SSL

Page 11: GWAB 2015 - Data Plaraform

Includes physical servicersand services that supportthe Services layer.

Client Layer

PHPWCF Data Services

SQL ServerApplications

and Tools

ODBC ADO.NET

Tabular Data Stream (TDS)

How It Works – Architecture of the Service

Services Layer

Provisioning

Billing and Metering

Connection Routing

TDS+SSL

Platform Layer

SQL Server

SQL Database Fabric

Management Services

Page 12: GWAB 2015 - Data Plaraform

Administration of the physical HW and OS. Infrastructure Layer

Client Layer

PHPWCF Data Services

SQL ServerApplications

and Tools

ODBC ADO.NET

Tabular Data Stream (TDS)

How It Works – Architecture of the Service

Services Layer

Provisioning

Billing and Metering

Connection Routing

TDS+SSL

Platform Layer

SQL Server

SQL Database Fabric

Management Services

Page 13: GWAB 2015 - Data Plaraform

Infrastructure Layer

Client Layer

PHPWCF Data Services

SQL ServerApplications

and Tools

ODBC ADO.NET

Tabular Data Stream (TDS)

Services Layer

Provisioning

Billing and Metering

Connection Routing

TDS+SSL

Platform Layer

SQL Server

SQL Database Fabric

Management Services

How It Works – Architecture of the Service

Microsoft AzureSQL DatabasePaaS

Page 14: GWAB 2015 - Data Plaraform

The Service head contains databasesConnect via automatically generated FQDN: {name}.database.windows.netInitially contains only a master database

SQL Database – Server Definition

Page 15: GWAB 2015 - Data Plaraform

In the Preview Management Portal

create a SQL Database server

SQL Database – Provision Servers Interactively

Page 16: GWAB 2015 - Data Plaraform

In the Management Portal

add firewall rules

SQL Database – Provision Servers Interactively

Page 17: GWAB 2015 - Data Plaraform

SQL Database – Automate Server Provisioning

Microsoft Azure Platform PowerShell cmdlets

http://bit.ly/azurepowershell

Page 18: GWAB 2015 - Data Plaraform

Azure Cross-Platform Command-Line Interface (xplat-cli)

SQL Database – Automate Server Provisioning

http://bit.ly/azurexplatcli

Page 19: GWAB 2015 - Data Plaraform

Creating A SQL Database Serverand a SQL Database

Demo

Page 20: GWAB 2015 - Data Plaraform

Service Tier

Performance Level

Common App Pattern

Performance Business Continuity

Max DB Size

Transaction Perf. Objective

DTU PITR DR / GEO-Rep

Basic Basic Small DB, SQL opp

2 GB Reliability / Hr.

5 7 Days

DB Copy + Manual Export

Standard

S0S1S2

Wrkgp/cloud app, multiple concurrent operations

250 GB

Reliability / Min.

102050

14 Days

DB Copy + Manual Export

Premium

P1P2P3

Mission Critical, High volume, Many concurrent Users

500 GB

Reliability / sec.

100200800

35 Days

Active Geo-replication

Selecting the right SQL Database edition

This information is subject to change over time.

Page 21: GWAB 2015 - Data Plaraform

Auto backups, transactional logs every 5 minBackups in Azure Storage and geo-replicated Creates a side-by-side copy, non-disruptiveBackups retention policy: 7, 14 or 35 daysAutomated export of logical backups for long-term backup protection

Point-in-time restore - “oops recovery”

Page 22: GWAB 2015 - Data Plaraform

Available in all tiers: Basic, Standard and PremiumBuilt on geo-redundant Azure StorageRecover to any Azure region

Geo-restore – Emergency data recovery when you need it most

Page 23: GWAB 2015 - Data Plaraform

Opt-in for Standard & Premium databasesCreates a stand-by secondaryReplicate to pre-paired Azure regionAutomatic data replication, asynchronousOpt-in via REST API, PowerShell or Azure Portal Microsoft-managed, RTO<24h, RPO<1 hr

Standard geo-replication

Page 24: GWAB 2015 - Data Plaraform

Self-service activation in Premium Create up to 4 readable secondariesReplicate to any Azure regionAutomatic data replication, asynchronousREST API, PowerShell or Azure Portal RTO<1h, RPO<5m, you choose when to failover

Active geo-replication

Page 25: GWAB 2015 - Data Plaraform

Configurable to track & log database activityDashboard views in the portal for at-a-glance insightsPre-defined Power View reports for deep visual analysis on Audit log dataAudit logs reside in your Azure Storage accountAvailable in Basic, Standard, and Premium

Auditing

Page 26: GWAB 2015 - Data Plaraform

Connect from on premiseand deploy your database

Demo

Page 27: GWAB 2015 - Data Plaraform

Transact-SQL

Use Familiar Technologies

(obviously)

Page 28: GWAB 2015 - Data Plaraform

.NET Framework (C#, Visual Basic, F#): ADO.NETC / C++: ODBCJava: Microsoft JDBC providerPHP: Microsoft PHP provider

Use Familiar Technologies - Languages

Page 29: GWAB 2015 - Data Plaraform

ODataEntity FrameworkWCF Data ServicesNHibernate (etc.)

Use Familiar Technologies - Frameworks

Page 30: GWAB 2015 - Data Plaraform

SQL Server Management Studio (>=2008 R2)SQL Server command-line utilities (SQLCMD, BCP)Visual Studio IDE for database development

Use Familiar Technologies - Tools

Page 31: GWAB 2015 - Data Plaraform

Use command, distributed transactions, distributed viewsService BrokerCommon Language Runtime (CLR)SQL AgentSQL ProfilerNative Encryption

Unsupported SQL Server Features

Page 32: GWAB 2015 - Data Plaraform

Web designers for tables, views, stored procs

Interactive query editing and execution

Azure SQL Database Management Portal

Page 33: GWAB 2015 - Data Plaraform

DAC Deployment From SQL Server Management Studio

Demo

Page 34: GWAB 2015 - Data Plaraform

Elastic Scale

Page 35: GWAB 2015 - Data Plaraform

Classic 3-tier enterprise architecture:

Scale out the front ends to multiple instances is easyScale the data-tier is more challenging

Web Role

LSQL

WorkerRole

Canonical cloud app architecture

Page 36: GWAB 2015 - Data Plaraform

SQL Database Considerations and Best Practices

Elastic Scale across thousands of databases via custom shardingScale out via .NET Client libraries consumed by customer applications to support sharded database patternEnables developer and manageability functionsSupports split, merge, and move operations on data

Page 37: GWAB 2015 - Data Plaraform

Vertical: Scale-up or scale-downHorizontal: Scale-out or scale-in

Basic

StandardPremium

BasicBasic

BasicBasic

Basic Basic

Premium

Standard

Scale out/in

Sca

le u

p/d

ow

n

Scalability options in Azure SQL DB

Page 38: GWAB 2015 - Data Plaraform

Web Role

JSQL

WorkerRole

J

J

Elastic Scale architecture

Page 39: GWAB 2015 - Data Plaraform

SQL Database

SQL Server VM

DocumentDB

Search

Microsoft Azure Data Platform

Page 40: GWAB 2015 - Data Plaraform

Run SQL on VMRun any SQL product on cloud VM

Support for SQL Server, Oracle, MySql

Ready to go VM images available in Gallery

Persistent storage using attached disk in blob storage

Has all the benefits and powers of VMs combined with the full features of a SQL Engine

Page 41: GWAB 2015 - Data Plaraform

SQL Database SQL IaaS

Why (at least) two offerings of SQL in Azure?

Page 42: GWAB 2015 - Data Plaraform

SQL Database

When you want reduced overhead and possibly need elastic scale.

Customer does not want to add additional IT resources for support and maintenance.

Avoiding CAPEX and OPEX.

Existing applications which requires full box product functionality.

Customer has ecosystem of IT resources for support and maintenance.

Removing CAPEX.

SQL IaaS

Page 43: GWAB 2015 - Data Plaraform

Other features SQL IaaS supports that SQL Database doesn’t (yet)

Full SQL Server functionality(for instance FullText Search)

Windows authentication available(requires VM to be joined to on-premises domain)

Larger database sizes possible(16TB)

Page 44: GWAB 2015 - Data Plaraform

Standing up a SQL Server in Azure using Marketplace

Demo

Page 45: GWAB 2015 - Data Plaraform

SQL Database

SQL Server VM

DocumentDB

Search

Microsoft Azure Data Platform

Page 46: GWAB 2015 - Data Plaraform

Fully managed, scalable JSON document database service

Page 47: GWAB 2015 - Data Plaraform

Microsoft Azure Data Services

fully managed, scalable, queryable, schemafree

JSON document database service for modern

applications

fully featured RDBMS

transactional processing

rich query

managed as a service

elastic scale

internet accessible http/rest

schema-free data model

arbitrary data formats

Page 48: GWAB 2015 - Data Plaraform

MongoDB

Existing applications which require extra capacity for scale out and can not be migrated

Customer has ecosystem of IT resources for support and maintenance

Removing CAPEX

Mongo MMS compatibility

Applications that need managed elastic scale, query over schema free data, native JSON/JavaScript support

Customer does not want to add additional IT resources for support and maintenance

Avoiding CAPEX and OPEX

Built-for-the-cloud database technology

DocumentDB

Page 49: GWAB 2015 - Data Plaraform

StrongBounded StatelessSessionEventual

Tunable Consistency – four distinct levels

Page 50: GWAB 2015 - Data Plaraform

All writes are visible to all readers. Writes synchronously committed by a majority quorum of replicas and reads are acknowledged by the majority read quorum.

Tunable Consistency – Strong

Page 51: GWAB 2015 - Data Plaraform

Guaranteed ordering of writes, reads adhere to minimum freshness. Writes are propagated asynchronously, reads are acknowledged by majority quorum lagging by at most K prefixes.

Tunable Consistency – Bounded Stateless

Page 52: GWAB 2015 - Data Plaraform

Read your own writes. Writes are propagated asynchronously while reads for a session are issued against the replica that can serve the requested version.

Tunable Consistency – Session

Page 53: GWAB 2015 - Data Plaraform

Reads eventually converge with writes. Writes are propagated asynchronously while reads can be acknowledged by any replica. Readers may view older data then previously observed.

Tunable Consistency – Eventual

Page 54: GWAB 2015 - Data Plaraform

Tunable Consistency

Writes Reads

Strong sync quorum writes

quorum reads

Bounded

async replication quorum reads

Session async replication session bound replica

Eventual

async replication any replica

* Ideal consistency and performance tradeoff for many application scenarios. High performance writes and reads with predictable consistency.

*

Page 55: GWAB 2015 - Data Plaraform

Overview of DocumentDB in the portalInteract with DocumentDB using code

Demo

Page 56: GWAB 2015 - Data Plaraform

SQL Database

SQL Server VM

DocumentDB

Search

Microsoft Azure Data Platform

Page 57: GWAB 2015 - Data Plaraform

Azure Search

Embed a sophisticated search experience into web and mobile applications without having to worry about the complexities of full-text search and without having to deploy, maintain or manage any infrastructure.

Page 58: GWAB 2015 - Data Plaraform

Azure Search

Perfect for enterprise cloud developers, cloud software vendors, cloud architects who need a fully-managed search solution.

Page 59: GWAB 2015 - Data Plaraform

Simple HTTP/JSON API for creating indexes, pushing documents, searchingKeyword search with user-friendly operators (+, -, *, “”, etc.)Hit highlightingFaceting (histograms over ranges, typically used in catalog browsing)

Search Functionality

Page 60: GWAB 2015 - Data Plaraform

Suggestions (auto-complete)Rich structured queries (filter, select, sort) that combines with searchScoring profiles to model search result relevanceGeo-spatial support integrated in filtering, sorting and ranking

Search Functionality

Page 61: GWAB 2015 - Data Plaraform

Azure Search walk through

Demo

Page 62: GWAB 2015 - Data Plaraform

Choose Tier

Page 63: GWAB 2015 - Data Plaraform

Global Availability

Page 64: GWAB 2015 - Data Plaraform

Scale Up

Page 65: GWAB 2015 - Data Plaraform

Manage Indexes

Page 66: GWAB 2015 - Data Plaraform

SQL Database

SQL Server VM

DocumentDB

Search

Microsoft Azure Data Platform

Page 67: GWAB 2015 - Data Plaraform

Data size

Access

Updates

Structure

Integrity

Scaling

Relational DB vs. Hadoop

Page 68: GWAB 2015 - Data Plaraform

Programming HDInsight – Existing ecosystem

HivePig

MahoutCascadingScaldingScoobi

Pegasus…

Page 69: GWAB 2015 - Data Plaraform

Programming HDInsight – Microsoft .NET

C#F#

Map/ReduceMicrosoft .NET management clients

Page 70: GWAB 2015 - Data Plaraform

Programming HDInsight – DevOps / IT Pros

PowerShellCross-Platform CLI tools (xplat-cli)

Page 71: GWAB 2015 - Data Plaraform

SQL Database

SQL on IaaS

DocumentDB

Search

Microsoft Azure Data Platform

Page 72: GWAB 2015 - Data Plaraform

Additional Database options in AzureAzure Table Service is a “Big Table” entity store.

MongoDB is a document (JSON) store.

Cassandra is a columnar store with excellent replication.

HBase is a Big Data (Hadoop) store available in HDInsight.

Oracle VMs are supported in Azure.

MySQL is offered from the partner ClearDB.

Page 73: GWAB 2015 - Data Plaraform

SQL Database

SQL on IaaS

DocumentDB

Search

Microsoft Azure Data Platform

Page 74: GWAB 2015 - Data Plaraform

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.