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

Introducing an Internet of Things scenario


Before we start exploring different capabilities to support a real-life scenario, we will briefly explain the scenario we will use throughout this chapter.

IoT Inc.

IoT, Inc. is a fictitious start-up company that is planning to build solutions in the Internet of Things domain. The first solution they will build is a registration hub, in which IoT devices can be registered. These devices can be diverse, ranging from home automation devices to devices that control traffic lights and street lights. The main use case for this solution is offering the capability for devices to register themselves against a hub.

The hub will be built with DocumentDB as its core component and a web API to expose this functionality. Before devices can register themselves, they need to be whitelisted in order to prevent malicious devices from registering.

In the following screenshot, we see the high-level design of the registration requirement:

The first version of the solution...