Meteor.js可能与Cassandra而不是MongDB? [英] Meteor.js possible with Cassandra instead of MongDB?

查看:187
本文介绍了Meteor.js可能与Cassandra而不是MongDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个项目的开始创建一个客户支持系统。对于此系统,我查看了 Meteor.js ,它看起来很有趣。事情是,我们想使用 Cassandra 构建系统的其余部分。

I'm at the start of a project to create a customer support system. For this system I've looked at Meteor.js, which looks very interesting. The thing is that we want to build the rest of our system using Cassandra.

所以我的问题如下: can meteor.js也可以与Cassandra一起使用,而不是 MongoDB

So my question is as follows; can meteor.js also be used with Cassandra instead of MongoDB? Are there any ready pieces of code to do this, or would we need to write a substantial amount of compatibility code ourselves?

推荐答案

是否有任何准备好的代码片段来执行此操作,或者我们需要自己编写大量的兼容性代码吗?您可以使用Meteor的任何数据库,但是您会失去该框架的三个七个主要优点: p>

You can use any database you want with Meteor, but you'll lose three of the seven key benefits of the framework:


数据库无处不在。使用相同的透明API从客户端或服务器访问您的
数据库。

Database Everywhere. Use the same transparent API to access your database from the client or the server.

延迟补偿。在客户端上,使用预取和模型
模拟,使它看起来像你有一个零延迟连接到
数据库。

Latency Compensation. On the client, use prefetching and model simulation to make it look like you have a zero-latency connection to the database.

反应性。使实时默认。所有图层,从
数据库到模板,应该提供一个事件驱动的接口。

Full Stack Reactivity. Make realtime the default. All layers, from database to template, should make an event-driven interface available.

我使用Redis和Postgres流星,除了MongoDB。我使用 Meteor方法公开客户端上的功能,以在其他数据库中创建,读取,更新和删除记录。

I use Redis and Postgres with Meteor, in addition to MongoDB. I use Meteor Methods to expose functions on the client to create, read, update and delete records in other databases.

对于Redis和其他数据库的官方支持位于流星路线图上,目前针对版本1.1。

Official support for Redis and other databases is on the Meteor roadmap, currently targeted for version 1.1. Meteor is currently at version 0.7.0.1, so that's probably not going to happen soon.

如果你想集成另一个数据存储像Cassandra更紧密地与Meteor,你可能会从Meteor的 mongo-livedata 模块开始。

If you want to integrate another datastore like Cassandra more tightly with Meteor, you would probably start with Meteor's mongo-livedata module.

这篇关于Meteor.js可能与Cassandra而不是MongDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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