javascript – Meteor.js可能与Cassandra而不是MongDB?

前端之家收集整理的这篇文章主要介绍了javascript – Meteor.js可能与Cassandra而不是MongDB?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正处于创建客户支持系统的项目的开始阶段.对于这个系统,我看了 Meteor.js,看起来非常有趣.问题是我们想要使用 Cassandra来构建我们系统的其余部分.

所以我的问题如下; meteor.js也可以和Cassandra一起使用而不是MongoDB吗?是否有任何现成的代码片段,或者我们是否需要自己编写大量的兼容性代码

解决方法

您可以使用Meteor所需的任何数据库,但是您将丢失框架的 seven key benefits中的三个:

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.

除了MongoDB之外,我还使用Redis和Postgres与Meteor.我使用Meteor Methods公开客户端上的函数来创建,读取,更新和删除其他数据库中的记录.

Redis和其他数据库的官方支持Meteor roadmap,目前针对1.1版. Meteor目前的版本为0.7.0.1,所以很可能不会很快发生.

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

原文链接:https://www.f2er.com/js/151325.html

猜你在找的JavaScript相关文章