Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Cosmos DB instead of Azure SQL DATABASE?

I am very excited to use Cosmos DB into my current application instead of Azure SQL database.

Before use Cosmos DB as backend in my current application, I have few questions in my mind those are

  1. In my current application I used Entity framework.
  2. And also used column encryption, dynamic data masking features.

So, if I moved to Cosmos DB instead of using Azure SQL database then how can I achieve those features by using Cosmos DB?

Documentation doesn't specify details about encryption, masking and entity framework.

Can you please tell me “is it possible to use Cosmos DB with above requirements instead of Azure SQL Database?

like image 857
Pradeep Avatar asked May 17 '17 13:05

Pradeep


People also ask

What is the difference between Cosmos DB and Azure SQL?

Azure SQL is based on SQL Server engine, you can easily migrate applications and continue to use the tools, languages, and resources that you're familiar with. Azure Cosmos DB is used for web, mobile, gaming, and IoT application that needs to handle massive amounts of data, reads, and writes at a global scale.

Can Cosmos DB replace SQL Server?

Cosmos DB is not a replacement for SQL Server. You would very, very rarely, if ever, migrate your data from an existing SQL Server database to Cosmos DB.

Is Azure Cosmos DB SQL?

Azure Cosmos DB Cosmos DB is the NoSQL offering on Azure. It is designed from the ground up to support extreme scalability, fully embracing the concept of eventual consistency.

Can I use cosmos DB as a relational database?

Fortunately, Cosmos DB SQL has been adapted to help you overcome the challenges inherent in using a relational database query language to query non-relational data stored in the nested structures of JSON-as you will see in the subsequent article.


1 Answers

Entity Framework is specific to relational databases, so it doesn't fit with Cosmos DB's document store (or graph, or tables).

Regarding encryption: Cosmos DB provides encryption-at-rest, built-in. There is no per-property data-masking feature built-in; you'd have to do your own data masking.

Whether you migrate to a document (or graph, or table) store is really up to you, and whether you want to re-shape your data to fit in such a storage model, vs a relational model. No real way to answer that for you. (TL;DR you cannot just switch from relational to, say, document, without any changes, as they are fundamentally different storage concepts).

like image 160
David Makogon Avatar answered Oct 05 '22 20:10

David Makogon