SQL Server vs. NoSQL

前端 未结 5 563
北恋
北恋 2021-01-30 18:14

So I have a website that could eventually get some pretty high traffic. My DB implementation is in SQL Server 2008 at the moment. I really only have 2 tables and a few stored pr

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 18:41

    Am I going to gain a lot of performance my moving to NoSQL?

    It depends.

    Check out this article for 7 reasons when you DON'T want to use NoSQL. If none is your case, then read further.

    The main advantage of Document-based NoSQL for the traditional enterprise needs is cheaper hosting at high scale due to lower CPU usage on querying denormalised data (the most often request). Key points:

    • The CPU is going nuts on JOINs and GROUP BYs in the SQL queries, when a denormilised data structure implies no/less JOINs, hence less stress on CPU.
    • CPU is the most expensive resource in the cloud, then storage is the cheapest. And denormalised data trades higher storage for lower CPU.

    How to get there?

    1. Master the DDD (Domain-Driven Design).
    2. Gain good understanding of CQRS (Command Query Responsibility Segregation) and Eventual consistency.
    3. Understand your domain and business processes.
    4. Design model, which is tuned to the access patterns.
    5. Review.
    6. Repeat steps 3 - 5.

提交回复
热议问题