Cosmosdb sql api和Cosmosdb cassandra api之间的存储区别是什么 [英] What are storage differences between Cosmosdb sql api and Cosmosdb cassandra api

本文介绍了Cosmosdb sql api和Cosmosdb cassandra api之间的存储区别是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在大多数文章中都提到,如果我们使用Cosmos Db并重新创建我们的应用程序,则应该使用Cosmos db sql api.当您已经将您的应用程序与实际的mongo和cassandra集成在一起并且我们希望快速迁移到cosmosdb而不改变生态系统时,可以使用Mongo api和cassandra api.

It is mentioned in most of the articles that if we are using Cosmos Db and newly creating our app we should go with Cosmos db sql api . Mongo api and cassandra api can be used when u already have your app integrated with actual mongo and cassandra and we want to migrate quickly to cosmosdb and not change the ecosystem.

但是当我们以天蓝色创建新的cosmosdb集群时,它会要求提供api类型.这意味着除了api(query)接口外,内部还必须存在一些存储差异和内部引擎处理差异.

But when we create a new cluster of cosmosdb in azure it ask for api type. That means internally there must be some storage differences and internal engine processing differences apart from just the api(query) interfaces.

我想了解这些差异是什么,我们应该根据这些差异来决定要选择的不同api.

I would like to understand what are those differences based on which we should decide the different apis to choose.

推荐答案

存储基础架构后端是相同的.容纳不同的API会有一些区别,但这是一个实现细节,旨在确保与每个受支持的API的兼容性和保真度.

The storage infrastructure backend is the same. There are some difference to accommodate the different API's but that is an implementation detail meant to ensure compatibility and fidelity with each of the supported API's.

如果您现有MongoDB或Cassandra数据库,并希望迁移到完全托管的体验,请选择其中一种.或者,如果您对MongoDB或Cassandra有所了解,并且不想学习Cosmos DB的API,那么请确保选择其中之一.

If you have an existing MongoDB or Cassandra database and would like to migrate to a fully managed experience, then choose one of those. Or if you're deep on MongoDB or Cassandra and don't want to learn Cosmos DB's API then sure, choose one of those.

所有其他API均基于Cosmos DB的Core(SQL)API构建,该API的SDK由该团队生产. Cosmos DB上的任何新功能(例如Change Streams)都是基于核心服务中已经存在的功能构建的,因此,当然,新功能会首先出现在Core API中,然后出现在其他API中.

All the other API's are built on top of Cosmos DB's Core (SQL) API and the SDK's for that API are produced by that team. Any new features on Cosmos DB, for instance Change Streams, is built upon features already in the core service so of course, new features come to the Core API first and then to the other API's later.

希望有帮助.

这篇关于Cosmosdb sql api和Cosmosdb cassandra api之间的存储区别是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆