7
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

CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

Embed Size (px)

Citation preview

Page 1: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

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

Page 2: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

2 Copyright © 2012 DOCOMO Innovations, Inc. All Rights Reserved.

Introduction

• Yas Naoi

• DOCOMO Innovations, Inc.

• Project Manager / Architect

[email protected]

• Twitter: @yas

Page 3: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

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

Page 4: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

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

Page 5: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

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

Page 6: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

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

Page 7: CouchConf Tokyo DOCOMO Innovations Lunchtime Lightning Talk (English)

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