Cassandra是否准备好了Ruby on Rails? [英] Is Cassandra production ready for Ruby on Rails?

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

问题描述

我正在考虑使用Cassandra作为数据库的项目。我们想最终迁移到Cassandra,即使我们使用MySQL开始,由于其可扩展性。我知道大公司喜欢Facebook,Digg,最近Twitter使用Cassandra,但我不相信任何这些网站跑Rails。我的问题是,是否可行使用Cassandra使用Ruby on Rails。需要考虑的要点:


  1. 我们非常依赖Authlogic宝石。切换到Cassandra会影响它的工作原理吗?

  2. Cassandra有没有成熟的红宝石客户端?在Github上看来,动物群的客户(现在是twitters的客户)似乎是最成熟的。
  3. >解决方案

Twitter在大多数前端运行轨道。 Fauna的客户端实际上是由twitter构建和发布的,所以你可以确定它是最新的,稳定的大型工作负载。查看提交的历史显示,经常改进被推送到它,这是伟大的。



很可能Authlogic需要被定制以与Cassandra正常工作。特别是,它似乎提供了基于named_scope和关系数据的某些方法。



似乎有人在Authlogic中构建了一个用于DataMapper支持的插件: http://twitter.com/collintmiller/statuses/2064046718 。您可以将它作为与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. 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?

Appreciate any tips.

解决方案

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.

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.

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.

Good luck!

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

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