简体   繁体   English

将 Azure CosmosDB 移至本地环境

[英]Move Azure CosmosDB to local environment

hope you are doing great!希望你过得很好!

Right now, we are developing a web app with .NET CORE in dev environment, does mean that our config file is pointing to Azure CosmosDB, and we use Gremlin to manage Graph stuff.现在,我们正在开发环境中使用 .NET CORE 开发 Web 应用程序,这意味着我们的配置文件指向 Azure CosmosDB,并且我们使用 Gremlin 来管理 Graph 内容。

But what we need also, is to make a local environment but we dont know how to have the CosmosDB in our local PC's.但是我们还需要做一个本地环境,但我们不知道如何在本地PC中拥有CosmosDB。

Does anyone know a tool or something to get CosmosDB, with Graph supports and Gremlin working locally?有没有人知道获得 CosmosDB 的工具或东西,支持 Graph 并且 Gremlin 在本地工作?

Thanks.谢谢。

The Cosmos DB Emulator can be installed locally for local development purposes, however, the emulator does not support the Gremlin API for Graph storage. Cosmos DB 模拟器可以安装在本地用于本地开发目的,但是,模拟器不支持用于图形存储的 Gremlin API。

While you cannot use Cosmos DB locally, you could install another database that supports the Gremlin API locally for your local Dev environments;虽然您不能在本地使用 Cosmos DB,但您可以为本地开发环境在本地安装另一个支持 Gremlin API 的数据库; such as the Apache Tinkerpop Gremlin Server .例如Apache Tinkerpop Gremlin Server If you do this, then you'll want to extra make sure you fully test your code against Cosmos DB Graph API, before deploying to ensure that there aren't any compatibility issues when releasing to Testing, Staging, and eventually Production environments.如果您这样做,那么您需要额外确保在部署之前针对 Cosmos DB Graph API 全面测试您的代码,以确保在发布到测试、暂存和最终生产环境时不存在任何兼容性问题。

There is currently no emulator that will allow you to work with the Gremlin API locally.目前没有允许您在本地使用 Gremlin API 的模拟器。 You're going to have to provision a development instance within Azure, or perhaps one per developer on your team.您将不得不在 Azure 中配置一个开发实例,或者您团队中的每个开发人员可能都配置一个。

The Azure Cosmos DB Emulator now supports graph databases. Azure Cosmos DB 模拟器现在支持图形数据库。 The management UI doesn't support Gremlin but only SQL but you can use it in your program via Gremlin.管理 UI 不支持 Gremlin 而只支持 SQL,但您可以通过 Gremlin 在您的程序中使用它。

It's described in https://docs.microsoft.com/de-de/azure/cosmos-db/local-emulator?tabs=cli,ssl-netstd21#gremlin-api它在https://docs.microsoft.com/de-de/azure/cosmos-db/local-emulator?tabs=cli,ssl-netstd21#gremlin-api 中有描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM