Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

unique id generation

1 reply [Last post]
  • Login or register to post comments
Tue, 07/27/2010 - 13:49
Peter vR
Offline
Joined: 07/12/2010
Groups: None

hi

in porting a traditional rdbms based application to membase involves a number of challenges, one of the tasks that rdbms typically can do is to generate unique ids. this remains revelant in a heterogenous environment. one solution i can think of is using a "memcached" counter (incr/decr) to provide this functionality, i'm wondering in the context of HA membase, is this a good solution?

to extrapolate, the real underlying question i suppose is: if an atomic operation is completed on the host machine, is it guaranteed to be available on a replica in case failover happens?

appreciate any input/advice/comments.

thanks!
peter

Top
  • Login or register to post comments
Tue, 07/27/2010 - 14:21
ingenthr
Offline
Joined: 03/16/2010
Groups:

There is a plan to provide synchronous replication and persistence, and membase is architected for that. In the current beta release, however, the atomic incr/decr are not guaranteed to be replicated in the case of a failure.

In the future, you could define this 'sequence generator' in a separate bucket whose replication is synchronous to ensure it's always replicated.

- Matt

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker