MongoDB and Cassandra

Source: Internet
Author: User

Technical aspects

1. Data Structure

MongoDB uses document-based storage. Its data structure is similar to the BSON structure of JSON. Cassandra supports key-value storage, and each key-value stores a period of time, this time period actually plays a role in version control.

2. Index Structure

MongoDB indexes are almost the same as those of relational databases. The meaning and implementation of common indexes, joint indexes, and unique indexes can refer to the understanding of MySQL indexes. Because Cassandra stores the key-value structure, if you want to perform conditional search for the value, you must create a reverse index and recreate a value-key-value pair.

3. Deployment

MongoDB provides a high-availability deployment mode for Replica Sets. After RS nodes are configured, the entire cluster automatically selects the Primary machine for write operations and automatically copies data to other nodes. It also has a mechanism to automatically elect new hosts after a fault. Cassandra provides more flexible policies. It uses a mechanism that can perceive the network structure, it allows you to configure whether to back up data to other nodes in the local network or to a remote data center.

4. Third-party clients

This is another reason why boxedice chose MongoDB. MongoDB has a wide range of client support, and almost all popular languages have their operation clients. In addition, almost all these clients are officially developed and maintained by 10gen. Cassandra only has official Java and Python clients, and the rest are spontaneous third-party clients.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.