Horizontal Scaling in Azure SQL Database

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • 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

  • @anurtr
    @anurtr 4 ปีที่แล้ว

    Very detailed and very nicely put all the details for implementing sharding in Azure SQL

  • @Finezzato
    @Finezzato 4 ปีที่แล้ว +1

    Very nice job. Only problem with this is that developers or admins need to lose a small fortune to play with real world case scenarios

  • @peagerm
    @peagerm 4 ปีที่แล้ว +2

    Thank you for the very informative video. I have managed to get the C# and db setup using ListMappings. However, when I try to deploy the split/merge tool to Azure cloud classic the service it states 'The requested VM tier is currently not available in East US for this subscription. Please try another tier or deploy to a different location.' We tried a few other regions with the same result. Do you know if there is a workaround or updated version?

  • @satya_uk
    @satya_uk 3 ปีที่แล้ว

    Many many thanks. It’s so well presented. Excellent 😊😊😊

  • @kevinwatson5190
    @kevinwatson5190 4 ปีที่แล้ว

    Gold... thank you for this, excellent job explaining.

  • @kumarsaec
    @kumarsaec 4 ปีที่แล้ว

    Thanks for posting it. It was very informative.

  • @mickinoz2005
    @mickinoz2005 2 ปีที่แล้ว

    not recommended but what are alternatives if your db is growing rapidly

  • @avinashkaushik2313
    @avinashkaushik2313 4 ปีที่แล้ว

    Very nice explined.

  • @kirylzotkin2307
    @kirylzotkin2307 6 ปีที่แล้ว

    Amazing job!