Nicht aus der Schweiz? Besuchen Sie lehmanns.de
Cosmos DB for MongoDB Developers - Manish Sharma

Cosmos DB for MongoDB Developers (eBook)

Migrating to Azure Cosmos DB and Using the MongoDB API

(Autor)

eBook Download: PDF
2018 | 1st ed.
XVIII, 209 Seiten
Apress (Verlag)
978-1-4842-3682-6 (ISBN)
Systemvoraussetzungen
34,99 inkl. MwSt
(CHF 34,15)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
Learn Azure Cosmos DB and its MongoDB API with hands-on samples and advanced features such as the multi-homing API, geo-replication, custom indexing, TTL, request units (RU), consistency levels, partitioning, and much more. Each chapter explains Azure Cosmos DB's features and functionalities by comparing it to MongoDB with coding samples. 

Cosmos DB for MongoDB Developers starts with an overview of NoSQL and Azure Cosmos DB and moves on to demonstrate the difference between geo-replication of Azure Cosmos DB compared to MongoDB. Along the way you'll cover subjects including indexing, partitioning, consistency, and sizing, all of which will help you understand the concepts of read units and how this calculation is derived from an existing MongoDB's usage. 

The next part of the book shows you the process and strategies for migrating to Azure Cosmos DB. You will learn the day-to-day scenarios of using Azure Cosmos DB, its sizing strategies, and optimizing techniques for the MongoDB API. This information will help you when planning to migrate from MongoDB or if you would like to compare MongoDB to the Azure Cosmos DB MongoDB API before considering the switch.

What You Will Learn
  • Migrate to MongoDB and understand its strategies
  • Develop a sample application using MongoDB's client driver
  • Make use of sizing best practices and performance optimization scenarios
  • Optimize MongoDB's partition mechanism and indexing
Who This Book Is For

MongoDB developers who wish to learn Azure Cosmos DB. It specifically caters to a technical audience, working on MongoDB. 




Manish Sharma is a senior technology evangelist at Microsoft. He has an experience of 14 years with various organizations and is primarily involved in technological enhancements.He is a certified Azure Solution Architect, Cloud Data Architect, .NET Solution Developer and PMP certified project manager. He is a regular speaker in various technical conferences organized by Microsoft (FutureDecoded, Azure Conference, specialized Webinars) & Community (GIDS, Docker etc.) for Client-Server, Cloud & Data technologies. 


Learn Azure Cosmos DB and its MongoDB API with hands-on samples and advanced features such as the multi-homing API, geo-replication, custom indexing, TTL, request units (RU), consistency levels, partitioning, and much more. Each chapter explains Azure Cosmos DB's features and functionalities by comparing it to MongoDB with coding samples. Cosmos DB for MongoDB Developers starts with an overview of NoSQL and Azure Cosmos DB and moves on to demonstrate the difference between geo-replication of Azure Cosmos DB compared to MongoDB. Along the way you'll cover subjects including indexing, partitioning, consistency, and sizing, all of which will help you understand the concepts of read units and how this calculation is derived from an existing MongoDB's usage. The next part of the book shows you the process and strategies for migrating to Azure Cosmos DB. You will learn the day-to-day scenarios of using Azure Cosmos DB, its sizing strategies, and optimizing techniques for the MongoDB API. This information will help you when planning to migrate from MongoDB or if you would like to compare MongoDB to the Azure Cosmos DB MongoDB API before considering the switch.What You Will LearnMigrate to MongoDB and understand its strategiesDevelop a sample application using MongoDB's client driverMake use of sizing best practices and performance optimization scenariosOptimize MongoDB's partition mechanism and indexingWho This Book Is ForMongoDB developers who wish to learn Azure Cosmos DB. It specifically caters to a technical audience, working on MongoDB. 

Manish Sharma is a senior technology evangelist at Microsoft. He has an experience of 14 years with various organizations and is primarily involved in technological enhancements.He is a certified Azure Solution Architect, Cloud Data Architect, .NET Solution Developer and PMP certified project manager. He is a regular speaker in various technical conferences organized by Microsoft (FutureDecoded, Azure Conference, specialized Webinars) & Community (GIDS, Docker etc.) for Client-Server, Cloud & Data technologies. 

Table of Contents 5
About the Author 10
About the Technical Reviewer 11
Acknowledgments 12
Introduction 13
Chapter 1: Why NoSQL? 15
Types of NoSQL 16
Key-Value Pair 16
Columnar 17
Document 17
Graph 18
What to Expect from NoSQL 20
Atomicity 20
Consistency 20
Isolation 20
Durability 20
Consistency 21
Availability 21
Partition Tolerance 21
Example 1: Availability 22
Example 2: Consistency 22
NoSQL and Cloud 22
IaaS 23
PaaS 23
SaaS 24
Conclusion 24
Chapter 2: Azure Cosmos DB Overview 25
Data Model Overview 26
Provisioning Azure Cosmos DB 27
Turnkey Global Distribution 39
Latency 43
Consistency 44
Throughput 44
Availability 44
Reliability 45
Protocol Support and Multimodal API 46
Table Storage API 46
SQL (DocumentDB) API 48
FROM Clause 49
WHERE Clause 49
SELECT Clause 49
ORDER BY Clause 50
Query Example 50
MongoDB API 52
Graph API 55
Cassandra API 62
Elastic Scale 63
Throughput 63
Storage 63
Consistency 64
Strong 64
Bounded Staleness 65
Session 65
Consistent Prefix 66
Eventual 67
Performance 68
Service Level Agreement (SLA) 69
Availability SLA 69
Throughput SLA 70
Consistency SLA 72
Latency SLA 73
Conclusion 73
Chapter 3: Azure Cosmos DB Geo-Replication 74
Database Availability (DA) 75
MongoDB Replication 75
Data-Bearing Nodes 75
Arbiter Nodes 77
Azure Cosmos DB Replication 80
Auto-Shifting Geo APIs 85
Consistency and Global Distribution 91
Conclusion 92
Chapter 4: Indexing 93
Indexing in MongoDB 93
Single Field Index 94
Query Using an Index 95
Query Not Using an Index 97
Compound Index 99
Multikey Index 100
Geospatial Index 100
Text Index 103
Hashed Index 105
Indexing in Azure Cosmos DB 105
TTL Indexes 107
Array Indexes 108
Sparse Indexes 109
Unique Indexes 109
Custom Indexing 110
Indexing Modes 111
Indexing Paths 116
Index Kinds 117
Hash Indexes 117
Range Indexes 117
Geospatial Indexes 117
Index Precision 120
Data Types 120
Conclusion 120
Chapter 5: Partitioning 121
Sharding 121
Partitioning in Azure Cosmos DB 125
Optimizations 134
Selecting a Partition Key 138
Use Case 138
Evaluate Every Field to Be a Potential Partition Key 139
Selection of the Partition Key 140
Conclusion 147
Chapter 6: Consistency 148
Consistency in Distributed Databases 148
Consistency in MongoDB 151
Consistency in Azure Cosmos DB 153
Consistent Reads/Writes 153
Strong Consistency 153
Bounded Staleness 156
Session 158
High Throughput 159
Consistent Prefix 160
Eventual 161
Conclusion 164
Chapter 7: Sizing 166
Request Units (RUs) 166
Allocation of RUs 167
Calculating RUs 170
Optimizing RU Consumption 175
Document Size and Complexity 175
Data Consistency 179
Indexing 182
Query Patterns 187
Conclusion 188
Chapter 8: Migrating to Azure Cosmos DB–MongoDB API 189
Migration Strategies 189
mongoexport and mongoimport 190
For Linux 190
For Windows mongodump/mongorestore 191
For Linux 191
For Windows 192
BulkExecutor 193
Application Switch 194
Optimization 196
Conclusion 198
Chapter 9: Azure Cosmos DB–MongoDB API Advanced Services 200
Aggregation Pipeline 200
Spark Connector 205
Conclusion 213
Index 214

Erscheint lt. Verlag 9.8.2018
Zusatzinfo XVIII, 209 p. 118 illus.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Datenbanken
Mathematik / Informatik Informatik Software Entwicklung
Schlagworte Azure • CosmosDB • DocumentDB • GraphDB • Gremlin • Microsoft • MongoDB • Neo4j • NoSQL • TableStorage
ISBN-10 1-4842-3682-3 / 1484236823
ISBN-13 978-1-4842-3682-6 / 9781484236826
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 7,1 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das umfassende Handbuch

von Wolfram Langer

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 36,55
der Grundkurs für Ausbildung und Praxis

von Ralf Adams

eBook Download (2023)
Carl Hanser Verlag GmbH & Co. KG
CHF 29,30