Cassandra 生产环境是否已为 Ruby on Rails 做好准备? [英] Is Cassandra production ready for Ruby on Rails?

查看:19
本文介绍了Cassandra 生产环境是否已为 Ruby on Rails 做好准备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个正在考虑使用 Cassandra 作为数据库的项目.考虑到它的可扩展性,即使我们一开始使用 MySQL,我们也希望最终迁移到 Cassandra.我知道 Facebook、Digg 和最近的 Twitter 等大公司都在使用 Cassandra,但我不相信这些网站中的任何一个都使用 Rails.我的问题是使用 Ruby on Rails 使用 Cassandra 是否可行.需要考虑的要点:

I'm working on a project that is considering using Cassandra as a database. We would like to eventually migrate to Cassandra even if we use MySQL to start with, given its scalability. I know that big companies like Facebook, Digg, and recently Twitter is using Cassandra, but I don't believe any of those sites run off Rails. My question is whether or not it's feasible to use Cassandra using Ruby on Rails. Points to consider:

  1. 我们非常依赖 Authlogic gem.切换到 Cassandra 会影响它的工作方式吗?
  2. Cassandra 是否有成熟的 ruby​​ 客户端?在 Github 上看来,fauna 的客户端(现在是 twitters 的客户端) 是最成熟的.有人有过制作经验吗?
  1. We heavily rely on the Authlogic gem. Would switching to Cassandra affect how it works?
  2. Are there any mature ruby clients for Cassandra? Looking on Github it seems that fauna's client (now twitters's client) is the most mature. Has anyone had production experience with it?

感谢任何提示.

推荐答案

Twitter 的大部分前端都在运行 rails.Fauna 的客户端实际上是由 twitter 构建和发布的,因此您可以非常确定它在大型工作负载上是最新的并且稳定的.查看提交的历史表明,它经常被推送改进,这很棒.

Twitter is running rails on most of their front end. Fauna's client is actually built and released by twitter, so you can be pretty certain that it's up to date and stable on large workloads. Looking at the history of commits shows that there are frequent improvements being pushed to it, which is great.

很可能需要自定义 Authlogic 才能与 Cassandra 一起正常工作.特别是,它似乎提供了基于 named_scope 和关系数据的某些方法.

Most likely Authlogic would need to be customized to work properly with Cassandra. In particular, it appears to provide certain methods based on named_scope and relational data.

似乎有人在 Authlogic 中构建了一个支持 DataMapper 的插件:http://twitter.com/collintmiller/statuses/2064046718.您也许可以将其用作使其与 Cassandra 兼容的起点.

It does appear that someone has built a plugin for DataMapper support in Authlogic: http://twitter.com/collintmiller/statuses/2064046718. You may be able to use that as a starting point for making it compatible with Cassandra.

祝你好运!

这篇关于Cassandra 生产环境是否已为 Ruby on Rails 做好准备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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