Book Image

Learning Azure DocumentDB

By : Riccardo Becker
Book Image

Learning Azure DocumentDB

By: Riccardo Becker

Overview of this book

Learning DocumentDB adopts a practical, step-by-step approach to help you learn the basics of DocumentDB and use your new-found abilities in real-life scenarios and enterprise solutions. We start with the absolute basics, such as setting up a DocumentDB environment, and guide you through managing your databases, and executing simple and complex queries. Next, we explain how to work with DocumentDB using the open REST protocol, and demonstrate how JavaScript works with DocumentDB. We’ll also show you how to authenticate and execute queries. Moving on, you’ll find out how to use DocumentDB from within Node.js to kick-start your Node.js projects. Next, you’ll discover how to increase the performance of your DocumentDB database and fine-tune it. Finally, you’ll get to grips with using DocumentDB in conjunction with other services offered from the Microsoft Azure platform.
Table of Contents (15 chapters)
Learning Azure DocumentDB
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we covered the very basics of the REST protocol and what verbs are available in the protocol. We saw that every single resource inside our DocumentDB can be referenced by a unique URI. This URI is the basis for executing REST-based queries against our databases, collections, documents, and all other available resources. We wrote some C# code in order to generate the authorization key that is needed for every REST request. Finally, we fired some REST queries against our DocumentDB to get a list of all the databases and how to create a document inside a collection. We used C# and we saw the raw HTTP representations of the same queries inside Fiddler.

In the next chapter, you will learn how to use Node.js to perform a subset of the activities from this chapter. The focus will be on how to use DocumentDB from Node.js to kick-start your Node.js projects.