Horizontal Scaling in Azure SQL Database

  Рет қаралды 7,772

David Postlethwaite

David Postlethwaite

Күн бұрын

Traditionally, when a server starts to reach its limit we have simply thrown more resources at it, either more CPU, memory or disk.
However there comes a point, especially in the cloud, where it is no longer possible to add more resources to a database. Here we need a different solution.
Instead of scaling up we must scale out, sometimes called horizontal scaling or sharding.
In this talk we will look at how to scale out in Microsoft Azure SQL database using the Azure Elastic Database tools
We will look at the requirements and options for horizontal scaling in Azure and then we will have a go at sharding an Azure SQL database and then querying and updating the different shards
We will be using t-sql, PowerShell and c# so be prepared for some serious coding.
*****
I've found that there is a mistake when I'm creating the range mappings. The range is actually "greater than or equal" to the RangeLow value to "less than" the RangeHigh value. (not "less than or equal" the RangeHigh as I used here) The RangeHigh value is not actually included in that range but will be the RangeLow value of the next range. So when I created the RangeMappings, Shard1 should have been from 1-8, Shard2 should have been from 8-15 and Shard 3 from 15-22. Which explains why the SplitMerge didn't go quite as planned!
Apologies, sometimes you only learn these things with use.
I wanted to add this comment as an annotation at the point in the video when I create the ranges but google in their wisdom have removed annotations.

Пікірлер: 12
Azure Elastic Database Jobs  -Elastic Job  Agents
19:31
David Postlethwaite
Рет қаралды 8 М.
Shard Attack - Horizontal Scaling in Azure SQL Database with David Postlethwaite
58:45
Part 5. Roblox trend☠️
00:13
Kan Andrey
Рет қаралды 2,9 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 18 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
Microsoft Azure for the SQL Server DBA 2018
59:48
David Postlethwaite
Рет қаралды 6 М.
Database Sharding in 200 Seconds
4:43
PlanetScale
Рет қаралды 24 М.
Azure SQL Database Elastic Queries
14:10
David Postlethwaite
Рет қаралды 8 М.
Azure Database Multi-Tenancy 1: Azure SQL Databases
38:30
Microsoft Azure
Рет қаралды 10 М.
SQL Server Table partitioning - DOs and DON’Ts
45:55
SQLBits
Рет қаралды 25 М.
Taming the Beast - How  a SQL DBA can keep Kerberos under control. Updated 2019
38:19
System design interview: Database Scaling
22:13
John McBride
Рет қаралды 14 М.
Unlocking Scalability: Azure SQL DB Hyperscale and the Power of Named Replicas
28:41
Migrate to Azure SQL Database Managed Instance
34:39
Data Double-Click
Рет қаралды 27 М.
Part 5. Roblox trend☠️
00:13
Kan Andrey
Рет қаралды 2,9 МЛН