我们应该为Cosmos DB使用什么Java客户端 [英] What Java client should we use for Cosmos DB
问题描述
您好-我们正在启动一个新项目以使用Cosmos DB(使用Java).我们应该使用Mongo驱动程序还是存在< g class ="gr_gr_87 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id ="87". id ="87">备用</g>?
Hi - We are starting a new project to use Cosmos DB (using Java). Should we use Mongo driver or is there any <g class="gr_ gr_87 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="87" id="87">alternate</g>?
谢谢
Siddharth
Siddharth
推荐答案
Siddharth,
Hi Siddharth,
我包含有关MongoDB API的主要介绍文件,因为它包含两个教程.一个基于.NET,另一个基于Java.
I am including the main introduction document for MongoDB API, as it contains two tutorials. One that is .NET based and the other which is Java based.
.NET基础教程:
.NET Based Tutorial:
Azure Cosmos DB:构建MongoDB API Web应用程序.NET和Azure门户
基于Java的教程:
Java Based Tutorials:
MongoDB Java驱动程序
If you are going to develop in Java, you are going to need to work with the MongoDB Java Driver.
Azure Cosmos DB:构建MongoDB API控制台应用程序Java和Azure门户使用
开发Java使用Azure Cosmos DB的MongoDB API的应用程序
使用.NET的一个好处是,.NET包含429个节流异常,当您在RU设置之外限制API时,它会处理重试事件,但是您正在询问Java.我提供了一些基于Java的示例来向您展示开发情况 入门步骤.
The one advantage to using .NET, is that .NET includes a 429 throttling exception which handles retry events when you throttle the API beyond the RU setting but, you are asking about Java. I have included a couple Java based samples to show you the development steps to get started.
此致
迈克
这篇关于我们应该为Cosmos DB使用什么Java客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!