Upload
ntt-innovation-institute-inc
View
1.291
Download
0
Embed Size (px)
Citation preview
1 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
2012/01/27 DOCOMO Innovations, Inc.
Credit: James Phillips, Couchbase, Inc.
Comparison of Couchbase, MongoDB and Cassandra
CouchConf Tokyo Lightning Talk
2 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
Introduction
• Yas Naoi
• DOCOMO Innovations, Inc.
• Project Manager / Architect
• Twitter: @yas
3 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
Cassandra
• Pros
- Optimized to write very rapidly (+ cache)
- Real-time vs Analytics: More suitable for analytics
- Can add many nodes but re-write in-memory and database file
• Cons
- Complex design for app developers
- Read vs Write – Cassandra’s Read: Always complex
- Column collection - Schemable
4 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
MongoDB
• Pros
- Really competing (rather than Cassandra, for Couch)
- Easy to use
- Ad-hoc Query approach for beginner developers
• Cons
- Hard to do data moving (to another database) by sharding
- Couch thinks Ad-hoc Query capability is more important
- Couch is trying to fill the gap in MongoDB
5 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
Couchbase vs. MongoDB
• Object Handling in Memory
- Mongo: Mongo has OS memory-mapped tech
but In-memory only → page fault
- Couch: In-memory + database file
Re-cache - scheduled
• Power Failure
- Mongo: While flushing memory to disk
- Couch: Transaction completing
→ Commit, crash-only architecture – safer
6 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
Couchbase, Mongo and Cassandra
• Performance
- Mongo: Object write data into memory, MRU mechanism
- Couch: Caching gracefully:
Memory mapping object / Memory managed object tech
- Cassandra: Write throughput is faster
• Big Data Analysis vs Big User Data
- 1) How do we analyze big data? (Cassandra)
- 2) How do we build application? (Couch)
• Geo
- Mongo: Mongo w/ API is better than Geocouch
7 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.
Thank You
Yas Naoi [email protected]
+1-408-256-0855 Twitter: @yas
"Coming together is a beginning, keeping together is a progress; working together is a success.“ - Henry Ford