Membase可以有人解释他们技术背后的想法 [英] Membase can someone explain the idea behind their technology

查看:65
本文介绍了Membase可以有人解释他们技术背后的想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我开始专门研究Membase(Couchbase)以来,已经是第四天了。由于管理简便,Membase对我来说似乎是一项非常有趣的技术,它们的界面就像非正式的和简单的一样神奇。添加/删除存储桶的方式很有趣。

It is fourth day already since I've started diving into CouchDB specifically Membase (Couchbase), Membase seems really interesting technology for me due to simplicity of administration, their interface is as magical as informal and simple. The way you add/remove buckets is just fun.

不幸的是,我没有设法在Mac OS X上启动他们的.NET客户端(在Windows上工作正常),还找不到执行Map / Reduce查询的方法,因此Membase Server技术似乎比纯CouchDB简单得多。无论如何,一切都改变了,直到最近我偶然发现描述其技术的图表:

Unfortunately I didn't managed to launch their .NET client on Mac OS X (on Windows it worked fine) and also couldn't find out the way to perform Map/Reduce queries so it seemed that Membase Server technology is little simpler then pure CouchDB. Anyway everything changed until recently I've stumbled upon the diagram that describes their technology:

图像说明此处

似乎 Couchbase服务器(当前为Membase服务器)扮演着某种Master数据库的角色不能直接访问,还有 Couchbase Single Server,它充当客户端数据库的角色,具有CouchDB的所有功能(例如Map / Reduce查询)

It seems that "Couchbase server (Currently Membase Server)" plays role of some sort of Master database which isn't accessed directly, and also there is "Couchbase Single Server" which plays the role of client database which has all the features of CouchDB (such as Map/Reduce queries)

如果是,那么如何执行 CouchSync?

If so then how is "CouchSync" is performed? Is it possible to perform this "CouchSync" from code?

推荐答案

在我向您介绍CouchSync的工作原理之前,我认为这是可能的。有助于我描述Couchbase产品历史的演变。这将使事情更加清楚。大约一年前,Membase Server首次发布。 Membase Server背后的想法是为memcached提供持久性(持久性层为sqlite)和易于使用的群集技术。大约6个月前,公司Membase和CouchOne合并成立了Couchbase。合并后,Couchbase继续直接提供Membase Server,但现在也提供了Couchbase Single Server。 Couchbase Single Server本质上是带有默认打包的GeoCouch的CouchDB,以及许多重要的性能改进。 2011年7月29日,Couchbase宣布了第一版Couchbase Server的开发人员预览。 Couchbase服务器是Couchbase单服务器和Membase的组合。基本上,Couchbase所做的就是用CouchDB作为持久性引擎替换sqlite。因此,这基本上导致了产品从键值存储变为文档存储数据库。

Before I describe to you how CouchSync works I think it would be beneficial for me to describe how the Couchbase product history evolved. This will make things more clear. About a year ago, Membase Server was first released. The idea behind Membase Server was to provide memcached with persistence (the persistence layer was sqlite) and simple to use clustering technology. Then about 6 months ago the companies Membase and CouchOne merged to form Couchbase. Directly after the merger Couchbase continued to provide Membase Server, but now also provided Couchbase Single Server. Couchbase Single Server is essentially CouchDB with GeoCouch packaged in by default along with many major performance improvements. On July 29th, 2011 Couchbase announced a developer preview of the first version of Couchbase Server. Couchbase Server is the combination of Couchbase Single Server and Membase. Basically what Couchbase did was replace sqlite with CouchDB as the persistence engine. So this basically caused the product to go from being a key-value store to a document store database.

那么CouchSync是什么?

So what is CouchSync?

CouchSync基本上就是Couchbase所谓的CouchDB复制。在Couchbase Server,Couchbase Single Server和CouchDB中都非常简单地进行设置。它只是一个更改提要,它从一台服务器流到另一台服务器。

CouchSync is basically what Couchbase is calling CouchDB replication. It is very simple to setup in both Couchbase Server, Couchbase Single Server and in CouchDB. All it is is a changes feed that is streamed from one server to another.

关于使用Membase的说明。由于Membase不提供任何CouchDB支持,因此它实际上不适合此图表,因此也不支持CouchSync。由于该产品同时具有Membase和CouchDB功能,因此您实际上将需要查看Couchbase Server的开发人员预览。同时,如果您正在寻找更稳定的测试对象,那么请看一下Couchbase Single Server,因为它将使您对Couchbase Server中的某些功能(如CouchSync)感到满意。

A note on using Membase. Since Membase doesn't provide any of the CouchDB support it doesn't actually fit into this diagram and therfore doesn't support CouchSync. You will actually want to look at the developer preview of Couchbase Server since this product has both Membase and CouchDB features. In the meantime if you are looking for something more stable to test then take a look at Couchbase Single Server as it will be able to give you a feel for some of the features (like CouchSync) that are in Couchbase Server

此外,此图的要点是表明您可以跨整个Couchbase产品线进行CouchSync。您无需通过Couchbase Single Server即可将CouchSync同步到Couchbase Mobile。您可以直接从Couchbase Server执行CouchSync。

Also, the point of this diagram is to show that you can do CouchSync across the entire Couchbase product line. You don't need to go through Couchbase Single Server to do CouchSync to Couchbase Mobile. You can do CouchSync directly from Couchbase Server.

是否可以通过代码执行CouchSync?
不。比这容易得多。您可以在网络用户界面中对其进行设置。

Is it possible to perform CouchSync from code? No. It's easier than that. You set it up in the web ui.

希望有帮助。


该图现在已过时。 Couchbase公司不再支持Couchbase Single Server(它是CouchDB的版本)。 CouchSync功能现在将直接与Couchbase服务器同步。

: This diagram is now outdated. Couchbase the company no longer supports Couchbase Single Server (which is it's version of CouchDB). The CouchSync feature will now sync directly with Couchbase server.

这篇关于Membase可以有人解释他们技术背后的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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