SQL Database Lag

Matt Dorsey 151 Reputation points
2022-09-16T13:55:10.013+00:00

Hi, I've got a basic (for less demanding workloads) tier for my azure sql db with 5 DTUs. How many users can I expect to be using my application simultaneously before they begin to notice lag when reading/writing from the database? Also, I'm still pretty green when it comes to database design and development. Can someone point me to an article where I can read up on what a DTU is and what the advantages are to adding more of them (DTUs)?

Thanks!
Matt

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Oury Ba-MSFT 19,101 Reputation points Microsoft Employee
    2022-09-19T21:58:47.933+00:00

    Hi @Matt Dorsey Thank you for posting your question on Microsoft Q&A and for using Azure services.

    As per my understanding you are trying to understand how many users are expected to be using your basic tier database with 5DTUs before it before you begin to notice a lag or performance issue. Please correct me if my understanding is wrong.

    According to the following article about DTUs purchasing model to gain deeper insight into the resource (DTU) consumption of your workload, use query-performance insights to deeper insight into your databases resource (DTU) consumption.

    242627-image.png

    ****what is a DTU is and what the advantages are to adding more of them (DTUs)?****
    If you’re just getting started with Azure SQL Database, the DTU model offers more options at the lower end of performance, so you can get started at a lower price point than with vCore.
    With the DTU model you pay one fixed price for your compute (or IO/memory), as well as your data storage and back up retention.
    If your database size grow, you might want to scale to higher standard tier which offer more CPU. Read more DTU-based purchasing model overview

    How many users can I expect to be using my application simultaneously before they begin to notice lag when reading/writing from the database?
    I think the number of users does not really matter, if you start noticing lagging then you will need to check query performance insights to understand your database-resource consumption (DTUs) and gain deeper insights for optimizing your workload.

    Reference: https://learn.microsoft.com/en-us/azure/azure-sql/database/resource-limits-dtu-single-databases?source=recommendations&view=azuresql

    Regards,
    Oury


1 additional answer

Sort by: Most helpful
  1. Michael Taylor 54,316 Reputation points
    2022-09-16T15:20:49.31+00:00

    You can read about what a DTU is here.

    As for how many users that is completely dependent upon what you're doing in your application. It is very important that you constantly monitor your DBs to see if you need to scale up/down. Specifically if you have complex queries joining many tables then your DTUs go up (more memory and CPU time). If all users are executing these queries constantly then you'll need more DTUs to provide reasonable performance. DTUs also impact read/writes. So if your app is reading or writing lots of data and users are doing this constantly then DTUs are also going to be higher.

    Unfortunately I don't think there is a good 1 DTU = x Users formula that you can use. I would recommend you start with the Standard tier and monitor performance. If you need to scale up from there then you'll know. Preferably use the Azure Price Calculator to calculate what Azure believes you'll need initial and go from there.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.