• Complain

Sharma - Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API

Here you can read online Sharma - Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Berkeley;CA;New York;Place of publication not identified, year: 2018, publisher: Apress, Distributed to the Book trade worldwide by Springer Science+Business Media New York, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Sharma Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API
  • Book:
    Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API
  • Author:
  • Publisher:
    Apress, Distributed to the Book trade worldwide by Springer Science+Business Media New York
  • Genre:
  • Year:
    2018
  • City:
    Berkeley;CA;New York;Place of publication not identified
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Protocol Support and Multimodal APITable Storage API; SQL (DocumentDB) API; FROM Clause; WHERE Clause; SELECT Clause; ORDER BY Clause; Query Example; MongoDB API; Graph API; Cassandra API; Elastic Scale; Throughput; Storage; Consistency; Strong; Bounded Staleness; Session; Consistent Prefix; Eventual; Performance; Service Level Agreement (SLA); Availability SLA; Throughput SLA; Consistency SLA; Latency SLA; Conclusion; Chapter 3: Azure Cosmos DB Geo-Replication; Database Availability (DA); MongoDB Replication; Data-Bearing Nodes; Arbiter Nodes; Azure Cosmos DB Replication;Chapter 8: Migrating to Azure Cosmos DB-MongoDB APIMigration Strategies; mongoexport and mongoimport; For Linux; For Windows mongodump/mongorestore; For Linux; For Windows; BulkExecutor; Application Switch; Optimization; Conclusion; Chapter 9: Azure Cosmos DB-MongoDB API Advanced Services; Aggregation Pipeline; Spark Connector; Conclusion; Index;Intro; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Why NoSQL?; Types of NoSQL; Key-Value Pair; Columnar; Document; Graph; What to Expect from NoSQL; Atomicity; Consistency; Isolation; Durability; Consistency; Availability; Partition Tolerance; Example 1: Availability; Example 2: Consistency; NoSQL and Cloud; IaaS; PaaS; SaaS; Conclusion; Chapter 2: Azure Cosmos DB Overview; Data Model Overview; Provisioning Azure Cosmos DB; Turnkey Global Distribution; Latency; Consistency; Throughput; Availability; Reliability;Auto-Shifting Geo APIsConsistency and Global Distribution; Conclusion; Chapter 4: Indexing; Indexing in MongoDB; Single Field Index; Query Using an Index; Query Not Using an Index; Compound Index; Multikey Index; Geospatial Index; Text Index; Hashed Index; Indexing in Azure Cosmos DB; TTL Indexes; Array Indexes; Sparse Indexes; Unique Indexes; Custom Indexing; Indexing Modes; Indexing Paths; Index Kinds; Hash Indexes; Range Indexes; Geospatial Indexes; Index Precision; Data Types; Conclusion; Chapter 5: Partitioning; Sharding; Partitioning in Azure Cosmos DB; Optimizations;Selecting a Partition KeyUse Case; Evaluate Every Field to Be a Potential Partition Key; Selection of the Partition Key; Conclusion; Chapter 6: Consistency; Consistency in Distributed Databases; Consistency in MongoDB; Consistency in Azure Cosmos DB; Consistent Reads/Writes; Strong Consistency; Bounded Staleness; Session; High Throughput; Consistent Prefix; Eventual; Conclusion; Chapter 7: Sizing; Request Units (RUs); Allocation of RUs; Calculating RUs; Optimizing RU Consumption; Document Size and Complexity; Data Consistency; Indexing; Query Patterns; Conclusion;For MongoDB developers who wish to learn Azure Cosmos DB, this book will guide you in identifying the whys and hows that you can employ in your applications and help you in achieving extraordinary success. --

Sharma: author's other books


Who wrote Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API? Find out the surname, the name of the author of the book and a list of all author's works by series.

Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Manish Sharma 2018
Manish Sharma Cosmos DB for MongoDB Developers
1. Why NoSQL?
Manish Sharma 1
(1)
Faridabad, Haryana, India
Since schooling most of us are taught to structure information, such that it can be represented in tabular form. But not all information can follow that structure, hence the existence of NULL values. The NULL value represents cells without information. To avoid NULL s, we must split one table into multiples, thus introducing the concept of normalization. In normalization, we split the tables, based on the level of normalization we select. These levels are 1NF (first normal form), 2NF, 3NF, BCNF (BoyceCodd normal form, or 3.5NF), 4NF, and 5NF, to name just a few. Every level dictates the split, and, most commonly, people use 3NF, which is largely free of insert, update, and delete anomalies.
To achieve normalization, one must split information into multiple tables and then, while retrieving, join all the tables to make sense of the split information. This concept poses few problems, and it is still perfect for online transaction processing (OLTP) .
Working on a system that handles data populated from multiple data streams and adheres to one defined structure is extremely difficult to implement and maintain. The volume of data is often humongous and mostly unpredictable. In such cases, splitting data into multiple pieces while inserting and joining the tables during data retrieval will add excessive latency.
We can solve this problem by inserting the data in its natural form. As there is no or minimal transformation required, the latency during inserting, updating, deleting, and retrieving will be drastically reduced. With this, scaling up and scaling out will be quick and manageable. Given the flexibility of this solution, it is the most appropriate one for the problem defined. The solution is NoSQL, also referred to as not only, or non-relational, SQL.
One can further prioritize performance over consistency, which is possible with a NoSQL solution and defined by the CAP (consistency, availability, and partition tolerance ) theorem. In this chapter, I will discuss NoSQL, its diverse types, its comparison with relational database management systems (RDBMS) , and its future applications.
Types of NoSQL
In NoSQL , data can be represented in multiple forms. Many forms of NoSQL exist, and the most commonly used ones are key-value, columnar, document, and graph. In this section, I will summarize the forms most commonly used.
Key-Value Pair
This is the simplest data structure form but offers excellent performance . All the data is referred only through keys, making retrieval very straightforward. The most popular database in this category is Redis Cache. An example is shown in Table .
Table 1-1
Key-Value Representation
Key
Value
C1
XXX XXXX XXXX
C2
123456789
C3
10/01/2005
C4
ZZZ ZZZZ ZZZZ
The keys are in the ordered list, and a HashMap is used to locate the keys effectively.
Columnar
This type of database stores the data as columns instead of rows (as RDBMS do) and are optimized for querying large data sets. This type of database is generally known as a wide column store. Some of the most popular databases in this category include Cassandra, Apache Hadoops HBase, etc.
Unlike key-value pair databases, columnar databases can store millions of attributes associated with the key forming a table, but stored as columns. However, being a NoSQL database, it will not have any fixed name or number of columns, which makes it a true schema-free database.
Document
This type of NoSQL database manages data in the form of documents. Many implementations exist for this kind of database, and they have different various types of document representation. Some of the most popular store data as JSON, XML, BSON, etc. The basic idea of storing data in document form is to retrieve it faster, by matching to its meta information (see Figures ).
Figure 1-1 Sample document structure JSON code Figure 1-2 Sample - photo 1
Figure 1-1
Sample document structure (JSON) code
Figure 1-2 Sample document structure XML code Documents can contain many - photo 2
Figure 1-2
Sample document structure (XML) code
Documents can contain many different forms of data key-value pairs, key-array pairs, or even nested documents. One of the popular databases in this category is MongoDB.
Graph
This type of database stores data in the form of networks, e.g., social connections, family trees, etc. (see Figure ). Its beauty lies in the way it stores the data: using a graph structure for semantic queries and representing it in the form of edges and nodes.
Nodes are leaf information that represent the entity, and the relationship (or relationships) between two nodes is defined using edges. In the real world, our relationship to every other individual is different which can be distinguished by various attributes, at the edges level.
Figure 1-3 Graph form of data representation The graph form of data usually - photo 3
Figure 1-3
Graph form of data representation
The graph form of data usually follows the standards defined by Apache TinkerPop, and the most popular database in this category is Neo4J (see Figure .
Figure 1-4a Gremlin Query on TinkerPop Console to Fetch All the Records - photo 4
Figure 1-4a
Gremlin Query on TinkerPop Console to Fetch All the Records
Figure 1-4b Result in TinkerPop console What to Expect from NoSQL To - photo 5
Figure 1-4b
Result in TinkerPop console
What to Expect from NoSQL
To better understand the need for using NoSQL, lets compare it to RDBMS from a transactional standpoint. For RDBMS, any transaction will have certain characteristics, which are known as ACIDatomicity, consistency, isolation, and durability .
Atomicity
This property ensures that a transaction should be completed or doesnt exist at all. If, for any reason, a transaction fails, a full set of changes that has occurred through the course of transaction will be removed. This is called rollback .
Consistency
This property ensures that the system will be in a consistent state after completion of a transaction (failed or successful).
Isolation
This property ensures that every transaction will have exclusivity over the resources, e.g., tables, rows, etc. The reads and writes of the transaction will not be visible to reads and writes of any other transaction.
Durability
This property ensures that the data should be persistent and shouldnt get lost during a hardware, power, software, or any other failure. To achieve this, the system will log all the steps performed in the transaction and the state will get re-created whenever required.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API»

Look at similar books to Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API»

Discussion, reviews of the book Cosmos DB for MongoDB developers migrating to Azure Cosmos DB and using the MongoDB API and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.