Of course, like any technology MongoDB has its strengths and weaknesses. MongoDB is designed for OLTP workloads. It can do complex queries, but it’s not necessarily the best fit for reporting-style workloads. Or if you need complex transactions, it’s not going to be a good choice. However, MongoDB’s simplicity makes it a great place to start.

mongodb——非事务,支持复杂查询,但是不适合报表

This ease of scaling, coupled with exceptional write performance (“All you’re doing is appending to the end of a log file”) and predictable query performance, add up to a high-performance workhorse in Cassandra.

cassandra——分布式扩展好,写性能强,以及可以预料的查询

Cassandra does not support Range based row-scans which may be limiting in certain use-cases. Cassandra is well suited for supporting single-row queries, or selecting multiple rows based on a Column-Value index.Cassandra supports secondary indexes on column families where the column name is known. Aggregations in Cassandra are not supported by the Cassandra nodes - client must provide aggregations. When the aggregation requirement spans multiple rows, Random Partitioning makes aggregations very difficult for the client. Recommendation is to use Storm or Hadoop for aggregations.

摘自:http://www.infoworld.com/article/2848722/nosql/mongodb-cassandra-hbase-three-nosql-databases-to-watch.html

Comparison Of NoSQL Databases HBase, Cassandra & MongoDB:
HBase:
Key characteristics:
· Distributed and scalable big data store
· Strong consistency
· Built on top of Hadoop HDFS
· CP on CAP

Good for:
· Optimized for read
· Well suited for range based scan
· Strict consistency
· Fast read and write with scalability

Not good for:
· Classic transactional applications or even relational analytics
· Applications need full table scan
· Data to be aggregated, rolled up, analyzed cross rows

Usage Case: Facebook message

Cassandra:
Key characteristics:
· High availability
· Incremental scalability
· Eventually consistent
· Trade-offs between consistency and latency
· Minimal administration
· No SPF (Single point of failure) – all nodes are the same in Cassandra
· AP on CAP

Good for:
· Simple setup, maintenance code
· Fast random read/write
· Flexible parsing/wide column requirement
· No multiple secondary index needed

Not good for:
· Secondary index
· Relational data
· Transactional operations (Rollback, Commit)
· Primary & Financial record
· Stringent and authorization needed on data
· Dynamic queries/searching on column data
· Low latency

Usage Case: Twitter, Travel portal

MongoDB:
Key characteristics:
· Schemas to change as applications evolve (Schema-free)
· Full index support for high performance
· Replication and failover for high availability
· Auto Sharding for easy Scalability
· Rich document based queries for easy readability
· Master-slave model
· CP on CAP

Good for:
· RDBMS replacement for web applications
· Semi-structured content management
· Real-time analytics and high-speed logging, caching and high scalability
· Web 2.0, Media, SAAS, Gaming

Not good for:
· Highly transactional system
· Applications with traditional database requirements such as foreign key constraints

Usage Case: Craigslist, Foursquare

摘自:https://www.linkedin.com/pulse/real-comparison-nosql-databases-hbase-cassandra-mongodb-sahu

针对分析任务:

For analytics, MongoDB provides a custom map/reduce implementation; Cassandra provides native Hadoop support, including for Hive (a SQL data warehouse built on Hadoop map/reduce) and Pig (a Hadoop-specific analysis language that many think is a better fit for map/reduce workloads than SQL).

http://stackoverflow.com/questions/2892729/mongodb-vs-cassandra

转载于:https://www.cnblogs.com/bonelee/p/6305992.html

cassandra mongodb选择——cassandra:分布式扩展好,写性能强,以及可以预料的查询;mongodb:非事务,支持复杂查询,但是不适合报表...相关推荐

  1. hive与hbase的以及mongodb和cassandra区别整理

    Hive Hbase 数据处理和计算问题 实时数据查询问题 不是数据库 NoSQL数据库 清洗数据 海量数据查询接口 OLAP OLTP(严格讲只是OLP,不包含T) 逻辑表,不存储实际数据 物理表 ...

  2. MongoDB与Cassandra的比较

    我正在评估什么是最好的迁移选项. 目前,我在分片的MySQL(水平分区)上,我的大部分数据存储在JSON Blob中. 我没有任何复杂的SQL查询(自从对数据库进行分区以来,已经迁移了). 现在,似乎 ...

  3. Cassandra使用简介 - Cassandra Knowledge Base

    1. Cassandra简介 Cassandra是一种非关系型(NoSQL)开源大规模分布式数据库,具有水平可扩展性.分布式架构及表结构灵活定义等突出特性. 具体而言,其特性表现在以下几方面: 弹性可 ...

  4. cassandra hbase_为什么选择Cassandra

    cassandra概况 为什么选择Cassandra?cassandra到底有那些令人印象深刻的特点呢?不防我们先来看下cassandra目前的大体概况. 理论扎实,师出名门 cassandra不仅吸 ...

  5. MongoDB 一个基于分布式文件存储的数据库

    简介 MongoDB是一个基于分布式文件存储的数据库.由C++语言编写.旨在为WEB应用提供可扩展的高性能数据存储解决方案. 特点 它的特点是高性能.易部署.易使用,存储数据非常方便.主要功能特性有: ...

  6. Cassandra Dev 1: Cassandra 入门

    2019独角兽企业重金招聘Python工程师标准>>> 本文转自我的javaEye博客,链接http://kylinsoong.javaeye.com/blog/731208 最近, ...

  7. 将MongoDB部署到分布式集群(实操)

    本教程前面的内容基本涵盖了 MongoDB 的基本知识,现在在单机环境下操作 MongoDB 已经不存在问题,但是单机环境只适合学习和开发测试,在实际的生产环境中,MongoDB 基本是以集群的方式工 ...

  8. jeecg <t:choose 功能标签用法修改 处理选择0条记录回写

    修改时 页面 隐藏域id 回写异常 修改  , 选择1+条记录正常 选择0条记录 无法写空,只能通过清空按钮清空  修改如下

  9. 如何使用MongoDB+Springboot实现分布式ID?

    转载请标明出处: http://blog.csdn.net/forezp/article/details/69056017 本文出自方志朋的博客 一.背景 如何实现分布式id,搜索相关的资料,一般会给 ...

最新文章

  1. mysql常用转换函数_MySQL中常用转换函数介绍
  2. Bridge网络模式下Linux虚拟机和主机进行通信
  3. 【 FPGA 】常数( localparam )和参数( parameter )
  4. Open Source的一些网站,自己收集来的
  5. 程序世界的秘密(上)
  6. Android RxJava 3.x 使用总结
  7. Linux网络编程 之 TCP编程(七)
  8. 科​目​三​智​能​考​试​系​统​实​际​道​路​考​试​项​目​评​判​标​准
  9. Python(pycharm)在windows下路径 ( ' / ' 与' \ ' )的问题
  10. 17. PHP 表单处理
  11. js四舍五入保留两位小数(可完全保留两位)
  12. 解决vscode中文乱码问题(不是改GBK,亲测有效)
  13. crc8校验c语言程序,单片机CRC8检验C语言实现
  14. 10款平面设计软件锦集,“学废”一样都可独挡一面!
  15. JS之flatten手写实现
  16. [异能程序员]第四章 偶遇(第四更)
  17. 小米商城网页版(js+css)
  18. 【NanoPi T2】 7.uboot gmac网卡驱动(3) - 驱动源码解析
  19. c++一元三次方程求解(NOIP2001 提高组)
  20. 水箱建模最小二乘法_【案例揭秘】利用隐变量建模和近红外光谱技术降低高剪切湿法制粒工艺放大的风险...

热门文章

  1. dw按钮图片滚动js_使用 React Hooks 实现仿石墨的图片预览插件(巨详细)
  2. insert批量插入500ms_如何快速安全的插入千万条数据
  3. php yield 导出文件,PHP yield 读取大文件
  4. angularjs获取上一个元素的id_三男子非法获取苹果ID账号买卖,交易数万条,价格从一毛到上百元不等...
  5. pycharm 类型注释_后端开发使用pycharm的技巧
  6. laravel框架的基础学习路线(不带composer的)
  7. 今年最新整理的《高频Java面试题集合》,聪明人已经收藏了!
  8. 关系数据库概念辨析❤️
  9. xshell如何登陆数据库_Xshell连接远程服务器和操作数据库
  10. java class 使用_Java反射机制(Class类的使用)