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

  • SEARCH
  • Home
  • 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 7708961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:44:41+00:00 2026-06-01T00:44:41+00:00

Is there some timestamp/counter that can be used to validate that in a read-modify-write

  • 0

Is there some timestamp/counter that can be used to validate that in a read-modify-write cycle, the data in the row did not change between reading and modifying?

In other words, can I read some kind of ID while reading the row, and when I write it back tell Cassandra what that ID was, and the write then fails if the ID changed since then? (Which amounts to saying that some other write took place after I read the data)

  • 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-06-01T00:44:42+00:00Added an answer on June 1, 2026 at 12:44 am

    Each column in cassandra is a Tuple (or a triplet) that contains a name, value and a timestamp. The timestamp of the column represents the last time it was modified. If you have 100’s of nodes, whichever node has an update with a the most recent timestamp will win. This is how Eventual Consistency is achieved.

    zznate has a good presentation: Introduction to Apache Cassandra for Java Developers where this topic is referenced (slide 37)

    Accessing timestamp of a Cassandra column

    In summary, you don’t need “some kind of ID” when you have the ability to retrieve the timestamp for a given column representing the last time it was modified. However, at scale, with 100’s of nodes, how can you be sure that the node you are connecting to, has the most up to date column? (refer back to the zznate presentation)

    Point is, you can’t, without enabling transactions:

    1. Cassandra – transaction support
    2. Cassandra Transaction with ZooKeeper – Does this work?
    3. how to integrate cassandra with zookeeper to support transactions
    4. And many more: cassandra & transactions
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to read out the timestamp-counter on x86 CPUs in Python?
I want to write a template function that checks some Timestamp property (class inherits
There's some legacy code that I would like to refactor. There is some data
I have a License class.There are 50 boolean properties and some timestamp properties. I
Are there some options somewhere where I can set the defaults, like the project
Is there some way I can use URLs like: http://www.blog.com/team-spirit/ instead of http://www.blog.com/?p=122 in
There are some other questions where people have problems with timestamp being all zeros.
As SQL Server returns timestamp like 'Nov 14 2011 03:12:12:947PM' , is there some
I have some data in CSV like: Timestamp, Count 2009-07-20 16:30:45, 10 2009-07-20 16:30:45,
In the database, there are some field is TimeStamp and some are Date, which

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.