DocumentDB Introduction
A NoSQL JSON database
Azure DocumentDB provides a fully managed NoSQL database service, highly available, Autoscale, easy to develop, and can accelerate and predict performance. It is ideal for applications that need to be scaled seamlessly, such as Web, Mobile, Gaming, and IoT.
This article explores the following questions:
What is Azure DocumentDB?
DocumentDB is a truly non-architected NoSQL database service. As a JSON database, DocumentDB supports JSON documents that can be easily iterated by the application architecture, and supports applications that require a key/value, document, or tabular data model. DocumentDB uses a widely-used JSON and JavaScript language to avoid mismatches between application-defined objects and database schemas.
Azure DocumentDB features and benefits include the following:
? Throughput and storage that can be flexibly increased or decreased
? Ad hoc queries with familiar SQL syntax
? Executing JavaScript in the database
? Adjustable consistency levels
? Fully managed
? From the openness of design
DocumentDB is ideal for applications that run on the Internet on a large scale.
How Azure DocumentDB manages your data
Azure DocumentDB Data Management with well-defined database resources. A replicated resource is highly available, allowing its logical URI to be uniquely visited separately. DocumentDB provides an HTTP-based RESTful programming model for all resources.
The DocumentDB database account is the only way to access Azure Document DB. Before you create an account, you must subscribe to Azure before you can access its services.
The resources in DocumentDB are all modeled and stored in the form of JSON documents. These resources can be managed either as items (a JSON document that contains metadata) or as a source (a collection of items). The itemsets are contained in their respective sources.
Use Azure DocumentDB for development
Azure DocumentDB can expose resources through the REST API, and any language that makes HTTP/HTTPS requests can call this API. In addition, DocumentDB also provides a programming library for a variety of mainstream languages. The library is currently available in the following languages and platforms:
Download |
Document |
. NET SDK |
. NET Libraries |
node. js SDK |
node. JS Library |
Java SDK |
Java Library |
JavaScript SDK |
JavaScript Library |
Not applicable |
Server-side JavaScript SDK |
Python SDK |
Python Library |
In addition to the basic operations, the SQL query interface provided by DocumentDB can also be used to retrieve JSON documents and support JavaScript application execution transactions. The query and script execution interfaces are available for all platform libraries and REST APIs.
SQL Query
Azure DocumentDB supports querying documents using the SQL language and expressions that support relational, hierarchical, and spatial queries. For. NET developers, DocumentDB also provides a LINQ query provider (as part of the. NET SDK).
Next steps
If you already have an Azure account, use DocumentDB in the Azure Portal preview.
If you don't have an Azure account, sign up for an Azure 1 trial and use Azure services worth 1,500 RMB.
Azure DocumentDB officially released