Azure SQL or MariaDB (or perhaps PostgreSQL)?

  • Hi,

    I got a question about a new system to be located in Azure. The system will have a fair amount of traffic, perhaps somewhere around 100 requests per second. Each request will be handled and logged. Perhaps the log items will be updated with more data during the request (which usually will last a few seconds). My guess is that we will have tables with a few 100 miljon rows.

    I've been working for a long time with development using Visual Studio, I also was certified for an older version of SQL Server. So my first instinct is to go with Azure SQL.

    MariaDB is also an option mentioned, due to the significant difference in cost. I have worked a bit with MariaDB, but from my (limited) experience, it is slower and less flexible. But I have hard to pull out facts or differences to motivate the higher cost.

    Perhaps you guys can help me with some input on this?

    Or perhaps my instinct is wrong, and MariaDB is as suitable as Azure SQL for this system?

  • Well, for a data collection mechanism like this, I might consider skipping relational data entirely. Instead, look at CosmosDB and use MongoDB to do it.

    However, if push came to shove and I did go with a relational data store for what you're describing, I'd have more faith in Azure SQL Database running fast enough compared to MariaDB or PostgreSQL. I'm not knocking either one, but in terms of pure performance, no other measures, the underlying SQL Server architecture is superior to the open source databases. Since you're in a situation where you're not sweating licensing costs, I'd focus on architecture, so Azure SQL Database wins.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • I'd focus on what you know. Ultimately the cost difference with Azure SQL, Maria as a PaaS service, PostgreSQL, etc. will be small compared to you understanding the system and working with it. Especially as requirements change and you tune the system. They all can work, or they call can fail. Go with your knowledge.

  • This is a bit like saying I have something that I want to store in the pantry.  What type of container should I use?

    What does the data you're trying to store actually look like?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply