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

Using membase/memcached buckets for user state

2 replies [Last post]
  • Login or register to post comments
Tue, 03/01/2011 - 01:01
devboy
Offline
Joined: 11/26/2010
Groups: None

 Hi,

Can someone give me an example of how they are using membase to manage user state? 

I mean... Assuming you have a cluster of servers load balanced and want to avoid sticky sessions, and you want to use membase (or plain old memcached for that matter) behind as a "session state" layer, how would you ensure proper concurrency. The problem I'm refferring to is that you might have 2 requests coming in on different servers, both getting some object from membase, modifying it and setting it back. We've experimented with using lock objects for each data object and using CAS to make sure only one server can modify some object at a given time. It yielded poor results. Might be due to our implementation but at this point I thought to just ask before we spend any more time on this.

I know companies that have huge loads are using architectures of this kind and even specifically membase to cache live user data. I could never find anything describing exactly how their doing it though.

 

Cheers,

DB 

 

 

Top
  • Login or register to post comments
Mon, 03/07/2011 - 11:48
devboy
Offline
Joined: 11/26/2010
Groups: None

 No one?

How do you ensure validity of concurrent requests in NoSQL DBs in general and membase specifically? Somebody HAD to tackle this before...

 

Top
  • Login or register to post comments
Mon, 03/07/2011 - 12:55
perry
Offline
Joined: 10/11/2010
Groups:

 Hi there DB, we actually have a number of customers using Membase for this exact purpose.  Using 'CAS' is the most common way to perfom the read-modify-write process and can certainly be tuned for very high performance.  Depending on the operations you want to perform on the data, there are also atomic, srever-side operations that can be used as well (append, prepend, incr, decr)

 

Hope that helps...

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

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