gpt4 book ai didi

javascript - Meteor.js 可以用 Cassandra 代替 MongoDB 吗?

转载 作者:IT老高 更新时间:2023-10-28 13:25:15 25 4
gpt4 key购买 nike

我正在开始创建客户支持系统的项目。对于这个系统,我查看了 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 开始。模块。

关于javascript - Meteor.js 可以用 Cassandra 代替 MongoDB 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21679103/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com