Announcement Announcement Module
Collapse
No announcement yet.
Roo and Cassandra Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo and Cassandra

    Hi,

    Does anyone know if it is possible to use roo with cassandra as DB?

    Thanks in advance

  • #2
    Not at this point. Cassandra is not even a spring-data supported db at this point. One option is to use datanucleus to get more access to nosql db's, but datanucleus does not support Cassandra.

    Comment


    • #3
      There is a plugin for using DataNucleus and Cassandra actually. It isn't provided by the DataNucleus project, but you can find links to it in the docs and supposedly supports many things.

      Comment


      • #4
        Hello,

        I'd be interested to see how you get on with unusual DataNucleus plugins. (I'm considering using them for another NoSQL database other than Cassandra).

        Can you report back here how you got on?

        Thanks

        Comment


        • #5
          I'm a heavy Cassandra user (plus created Roo) and I'm not entirely sure how you'd marry the two in a way that would deliver significant out-of-the-box functionality to standard enterprise application development.

          Working with Cassandra in a non-trivial use case requires you to consider up-front your queries and then design your column families accordingly. Once you have column families designed, you're in a position to perform your Java coding with something like Hector. You can happily code Roo applications which use Hector, and indeed once Roo 1.2 comes out you'll have far more flexibility for DAO and services layer support to make this easier.

          Fundamentally Cassandra differs from noSql approaches like MongoDB which are closer to a "relational" design model in so far as you design the data structure first (in this case a document) and can query it later. You setup indexes to make this more achievable. This is a more natural fit for something like Roo because we're accustomed to thinking about enterprise applications in terms of tables or entities and these are easily modelled as documents.

          Having said that I have many nice things to say about Cassandra if you have serious big data requirements and are happy to trade some querying flexibility for the many benefits of a column database model. In my experience Cassandra is very pleasant to work with assuming you don't have ad-hoc querying requirements.

          Cheers
          Ben

          Comment

          Working...
          X