Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

For a volatile cache, is it better to use memcache or couchbase?

1 reply [Last post]
  • Login or register to post comments
Wed, 01/16/2013 - 20:20
fecheverri
Offline
Joined: 01/16/2013
Groups: None

Hi all, I was hoping that you can give me a hand with a situation I'm facing at work. Turns out that I have an application which is currently using memcached for volatile storage of sessions (the session id is the key and then I use a custom Java object as the value). I'm being "adviced" to use Couchbase, but my problem is that I don't know if that's a better solution for the current application. The idea is that at least until now, there is no real storage requirement for that cache (if everything crashes, nevermind) and it's life span is about less than 30 seconds.

One of the things that bugs me is that we have a hard performance requirement to send requests in less than 300 ms (which doubles our current response time) and I don't want to change implementation for introducing a performance impact in my application, just because it's nicer.

What do you guys think? Should Couchbase be a better option, or I should stay with memcache?

Top
  • Login or register to post comments
Thu, 01/17/2013 - 01:38
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

Couchbase is a great solution for your use case; and it is used a lot for this by customers.

You have probable seen this page on the site that described the difference between a 'simple memcached' versus Couchbase server:
- http://www.couchbase.com/memcached

Also for your application you can choose between the 2 types of 'bucket' :
- Couchbase : behind the cache data are persisted automatically, and you can use the TTL (Time to live) to let the system deal with the eviction
- Memcache : no persistence but better clustering management than standard memcache

300ms... it is not a problem at all, I invite you to look to these benchmarks:
- http://www.slideshare.net/renatko/couchbase-performance-benchmarking
- http://blog.couchbase.com/understanding-performance-benchmark-published-...

Regards

__________________

Tug
@tgrall

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