leveraging cloud for the modern sql developer

40
INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM Leveraging Cloud for the Modern SQL Developer

Upload: jason-strate

Post on 22-Jun-2015

422 views

Category:

Technology


2 download

DESCRIPTION

In the past, developing a database was a simple affair where you built and deployed the database for a server down the hall in your datacenter, or in some cases to a server under someone's desk. While those good ole days were a much more simple time, they were quite limiting in how a database could be deployed and there were much fewer options for ensuring stability and performance. Today, SQL Developers have many more options for deployment including the services provided through Windows Azure. In this session, we'll dive into what you need to know to start developing databases with Windows Azure and discuss the value that cloud delivery can provide to your database development. http://pragmaticworks.com/LearningCenter/FreeTrainingWebinars/PastWebinars.aspx?ResourceId=640

TRANSCRIPT

Page 1: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Leveraging Cloud for the Modern SQL Developer

Page 2: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM2

Introduction

Jason

Strate

e: [email protected]

e: [email protected]

b: www.jasonstrate.com

t: StrateSQL

Resources pragmaticworks.com/Services/CloudSolutions

Page 3: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM3

Page 4: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM4

Page 5: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM5

Page 6: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM6

Page 7: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM7

Page 8: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM8

Page 9: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM9

Page 10: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM10

Agenda

Why SQL

Database?

Designing

Databases

Deploying

Databases

Cloud

Performance

Scaling

Databases

Page 11: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Why SQL Database?

Why

SQ

L D

ata

base

?

Desi

gnin

g D

ata

base

s

Dep

loyi

ng

Data

base

s

Clo

ud

Perf

orm

ance

Sca

ling

Data

base

s

Page 12: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM12

Modern Data Platform

Page 13: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM13

SQL Database

Managed relational database platformPlatform as a Service (PaaS)

Basically SQL Server database online

New features introduced on updates

Page 14: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM14

SQL Database benefits

Built-in high availability

Automatic disaster recovery

Performance governance

Minimal maintenance

Scale-out growth

Page 15: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Designing Databases

Why

SQ

L D

ata

base

?

Desi

gnin

g D

ata

base

s

Dep

loyi

ng

Data

base

s

Clo

ud

Perf

orm

ance

Sca

ling

Data

base

s

Page 16: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM16

SQL Server Data Tools

Page 17: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM17

SQL Server Data Tools

Full fledged database development tool

Designed for database developers

Incorporates common development needs:Database projects

Source code control

Offline code management

Schema comparison

Development independent of production

Page 18: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM18

Database Design

Page 19: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Designing Databases

Demo

Page 20: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Deploying Databases

Why

SQ

L D

ata

base

?

Desi

gnin

g D

ata

base

s

Dep

loyi

ng

Data

base

s

Clo

ud

Perf

orm

ance

Sca

ling

Data

base

s

Page 21: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM21

Database Deployment

Migrate from on-premise to cloudAnd cloud to on-premise

Integrate changes with minimal effort

Build database before deployment

Schema compare on deployment

Refactoring within project

Page 22: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM22

Page 23: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM23

Deployment Models

DACPACDatabase schema

Schema compare at deployment

BACPACDatabase schema

Data from database

Deployment replaces database

Page 24: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Deploying Databases

Demo

Page 25: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Cloud Performance

Why

SQ

L D

ata

base

?

Desi

gnin

g D

ata

base

s

Dep

loyi

ng

Data

base

s

Clo

ud

Perf

orm

ance

Sca

ling

Data

base

s

Page 26: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM26

Performance Considerations

Engine throttling

Performance thresholdsPartition sizeDatabase space usedData write IOsLog space usedLog write IOsNumber of busy worker

Internet connectivity

Page 27: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM27

Is This An Azure Problem?

Page 28: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM28

Noisy Neighbor Affects All

1. Ignore the problem

2. Kill some spids

3. Complain about it

4. Wait, wait, wait

5. Get yelled at

Page 29: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM29

Performance Levels

Basic

WebPremium

Page 30: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM30

New Service Tiers

Basic

StandardPremium

Page 31: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM31

SQL Database Service Tiers

Service Tier Database Size Limit DTU per DatabaseMax Worker

ThreadsMax Sessions

ASDB Transactions

per Minute

Basic 2 GB 1 20 100 58

Standard S1 250 GB 5 50 200 283

Standard S2 250 GB 25 100 500 1,470

Premium P1 500 GB 100 200 2,000 5,880

Premium P2 500 GB 200 400 4,000 11,520

Premium P3 500 GB 800 1,600 16,000 43,800

Page 32: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM32

Key Performance Terms

Database Throughput Unit (DTU)The resources powering each performance level are represented in DTUs. It combines CPU, memory, physical reads, and transaction log writes into a single unit.

Azure SQL Database Benchmark (ASDB)ASDB measures the actual throughput of a performance level by using a mix of database operations which occur most frequently in online transaction processing (OLTP) workloads.

Page 33: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM33

Business Continuity

Self-service restoreRestore service offers self-service control over data restoration from available backup data, putting the power to restore in your hands in case of “oops recovery”.

Active geo-replicationPremium offers active geo-replication, which allows you to create up to 4 readable secondaries in any Azure datacenter and control when and where to failover

Page 34: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Scaling Databases

Why

SQ

L D

ata

base

?

Desi

gnin

g D

ata

base

s

Dep

loyi

ng

Data

base

s

Clo

ud

Perf

orm

ance

Sca

ling

Data

base

s

Page 35: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM35

Move between service levels

Pay for use based on need

Elastic performance database

Scaling Up SQL Database

Page 36: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM36

Typical Architecture

Page 37: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM37

Scale Out Architecture

Central Node

Page 38: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM38

Database Sharding

Partition workload

Logical units of work

Focus on application logic

Scale design up and down

Similar concept to Parallel Data Warehouse scale growth

Page 39: Leveraging Cloud for the Modern SQL Developer

INTELLIGENT DATA SOLUTIONS WWW.PRAGMATICWORKS.COM

Leveraging Cloud for the Modern SQL Developer

Questions?

Page 40: Leveraging Cloud for the Modern SQL Developer

ProductsImprove the quality,

productivity, and performance

of your SQL Server and BI

solutions.

ServicesSpeed development through

training and rapid

development services from

Pragmatic Works.

FoundationHelping those who don’t have

the means to get into

information technology and to

achieve their dreams.

Name: Jason Strate

Email: [email protected]

Blog: www.jasonstrate.com

Resource: pragmaticworks.com/Services/CloudSolutions

Need Help? jasonstrate.com/go/vmdba