将Couchbase同步适配器连接到Couchdb服务器 [英] Connecting Couchbase sync adapter to couchdb server

查看:110
本文介绍了将Couchbase同步适配器连接到Couchdb服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何将沙发床同步适配器连接到沙发床服务器,文档只说如何使用沙发床服务器,然后使用沙发床没有的管理员控制台,以及在我运行时

How do I connect the couchbase sync adapter to a couchdb server, the docs only say how to use couchbase server and then to use the "administrator console" which couchdb doesn't have, and when I run

sync_adapter -url 192.168.1.xx/mydb 

它返回错误

在您说它无法完成之前,这是根据文档文档

Before you say "it can't be done", here is a quote from the couchbase docs


Couchbase Lite可以通过Sync Gateway与运行Apache CouchDB的服务器以及
Couchbase Server进行同步。

"Couchbase Lite can sync with servers running Apache CouchDB and with Couchbase Server via Sync Gateway."


推荐答案

Couchbase Lite与CouchDB复制兼容,您可以像在Couchbase上使用Sync Gateway一样使用它。 。

Couchbase Lite is compatible with CouchDB replication, and you can use it same way as you would use Sync Gateway on top of Couchbase.

在这里混合使用的是3种不同的工具:

What you mixed here is 3 different tools:


  1. 同步网关,它实际上是 Couchbase服务器和 CouchDB API

  2. 另一个数据库CouchDB

  3. 可移动的Couchbase Lite数据库解决方案

  1. Sync Gateway, which is actually adapter between Couchbase Server and CouchDB API
  2. CouchDB which is another database
  3. Couchbase Lite which is mobile database solution

更清楚地说,Couchbase Lite是用于移动平台的文档存储数据库,从API来看,它完全类似于CouchDB。由于CouchDB具有可在HTTP API上运行的漂亮复制算法(是的,您只需要Internet连接即可进行同步),因此Couchbase Lite的作者发现它很方便并使用了它。
接下来,由于Couchbase数据库使用二进制协议(而不是HTTP复制)进行同步,因此他们为 HTTP API同步创建了Sync Gateway。

To be more clear, Couchbase Lite is document storage database for mobile platform and from API it totally looks like CouchDB. Since CouchDB has nice and pretty replication algorithm that works over HTTP API (ye, you only need internet connection to make synchronization), authors of Couchbase Lite found it handy and used it. Next, since Couchbase database uses binary protocol for (instead of HTTP replication) synchronization, they made Sync Gateway for that "HTTP API" sync.

我是不确定是否可以使用CouchDB复制Sync Gateway(由Walrus或Couchbase支持),但是可以确定是否可以使用Sync Gateway AND / OR与CouchDB复制Couchbase Lite。

I am not sure if you can replicate Sync Gateway (backed by Walrus or Couchbase) with CouchDB, but for sure you can replicate your Couchbase Lite with Sync Gateway AND/OR with CouchDB.

这么短的话:


  • CouchDB =具有HTTP API的所有操作的数据库,

  • Couchbase =数据库,二进制协议(=您需要驱动程序),

  • 同步网关=顶部Couchbase上的HTTP API

  • 或者您可以说-Couchbase + Sync Gateway = CouchDB,并且

  • Couchbase Lite =移动版CouchDB

  • CouchDB = database with HTTP API for all operations,
  • Couchbase = database, binary protocol (=you need drivers for it),
  • Sync Gateway = HTTP API on top Couchbase
  • or you can say - Couchbase + Sync Gateway = CouchDB, and
  • Couchbase Lite = CouchDB for mobile

这篇关于将Couchbase同步适配器连接到Couchdb服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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