Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2220

Support for atomic counters (non-clustered)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.6
    • core
    • None

    Description

      For several use cases (think +1/-1 votes on forum posts) it would be good to have some basic support for atomic counters in Oak. Such counters must:

      1. correctly reflect increments/decrements by integral parts across threads / cluster nodes,
      2. exhibit some well defined consistency characteristics amongst each other,
      3. not require cluster wide coordination.

      1. is required so in the forum post example the correct number of votes is recorded for each post.
      2. is important so in the forum post example sorting by votes results in the correct order.
      3. is important as global cluster synchronisation run contrary to out overall scalability goals.

      Additionally such counters should allow the user to trade off the consistency characteristics from 2 for availability. I.e. scarifying some availability results in hight consistency.

      Attachments

        1. oak-atomic-counter.md
          3 kB
          Davide Giannella

        Issue Links

          Activity

            People

              edivad Davide Giannella
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: