2021-09-13 10:02:29
The coolest part of Azure CosmosDB.
The Azure cloud has a NoSQL database called CosmosDB. It has both pros and cons, and therefore I will make a separate video on it. However, the most interesting part is the API that we use to interact with the database. For example, if we are talking about MySQL, we will have SQL, MongoDB will have NoSQL, and Redis will have the Redis query language. These APIs cannot be used with each other without complex manipulations.
However, the developers of CosmosDB decided to overcome this problem and made more than five APIs for the database interactions. For instance, you can choose SQL or MongoDB, and then use them in your code. This greatly simplifies both the understanding of the queries from developers, and the ease of using the database itself. Now, we can use any libraries that were in our code before, that is, we do not need to change the code much when changing the database.
The biggest disadvantage is the new functionality, as well as too different database features. For example, if MongoDB releases new functionality, it may appear in the library that you use in your code. However, it will not appear in CosmosDB for a very long time, and accordingly you will need to somehow adapt to it.
16 viewsedited 07:02