Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7674885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:50:11+00:00 2026-05-31T16:50:11+00:00

I would like to know your opinion about using Cassandra to implement a RBAC-like

  • 0

I would like to know your opinion about using Cassandra to implement a
RBAC-like authentication & authorization model. We have simplified the
central relationship of the general model
(http://en.wikipedia.org/wiki/Role-based_access_control) to:

user —n:m— role —n:m— resource

user(s) and resource(s) are indexed with externally visible identifiers.
These identifiers need to be “re-ownable” (think: mail aliases), too.

The main reason to consider Cassandra is the availability, scalability
and (global) geo-redundancy. This is hard to achieve with a RBDMS.

On the other side, RBAC has many m:n relations. While some
inconsistencies may be acceptable, resource ownership (i.e. role=owner)
must never ever be mixed up.

What do you think? Is such relational model an antipattern for Cassandra
usage? Do you know similar solutions based on Cassandra?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:50:13+00:00Added an answer on May 31, 2026 at 4:50 pm

    I’m going to go ahead and turn my comments into an answer so they’re in one place.

    While you have a large sounding dataset, 100,000,000 accounts to manage if I’m reading that correctly, you also have the constraint of needing to enforce some level of consistency to ensure a specific relationship never falls out of sync. You also have a situation with lots of one-to-many relationships (resource–>users or m:n from above) that you need to enforce. Additionally, it sounds like you will be reading from the dataset more than writing to it. Subsequently, I think an RDBMS with a hot backup would solve your problems better than a custom Cassandra deployment.
    The reasons behind this being:

    1. One-To-Many relationships in RDBMS can be expressed as a SQL statement that joins across tables and you only have to store the data once. In Cassandra, depending on the setup, you’d have to store the same information in multiple places to properly reflect the relationships. This would lead to a rather messy and redundant data model.

    2. Consistency — Cassandra is eventually consistent, which is fine when dealing with most kinds of data, IMHO. However, when dealing with something like security, which necessitates consistency at all times, RDBMSes (plural?) have a significant advantage in Transactions to ensure you’re data is always in sync. Something I think is important from a security perspective.

    3. Read Speed — Using indexes in RDBMS will significantly speed up reading out of the DB, so I wouldn’t make this a driving decision factor until you can empirically determine will be a significant bottleneck. Cassandra’s quorum reading model could, in some ways, be slower, as you have to wait on N machines (where N >= 1) to return an answer and correct that answer if it’s out of sync.

    4. Redundancy — An RDBMS with a hot backup (master-master copying) would solve redundancy problems.

    Cassandra’s a great tool and I enjoy using, however, in this case, I think your model works better with a RDBMS than it does with Cassandra.

    Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have your opinion about the subject version control, but focusing
I would like to know what guys are using to make diagram of your
I would like to know what in your opinion should be included in approach
I would like to know your opinion of a good jQuery and JavaScript book.
I would like to know your opinion on whether it is a good idea
I would like to hear some opinions about using the isolated storage in Silverlight
I know there are a few topics about this, but I still would like
I would like to get your opinion on which of the following routines should
i would like know some reference. I know i can googling it. but prefer
Would like to know what a programmer should know to become a good at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.