4. Azure DocumentDb Training – Accessing DocumentDb from .NET
There are one-to-few
relationships between
entities.
There is embedded data
that changes infrequently.
There is embedded data
won't grow without bound.
There is embedded data
that is integral to data in a
document.
5. Azure DocumentDb Training – Accessing DocumentDb from .NET
Json natively serialize
to .NET objects with
JSON.NET library
6. Azure DocumentDb Training – Accessing DocumentDb from .NET
DocumentDb is Platform as a Service
No OnPremise
RESTful API
All DocDb elements public and accessible as Resource Uri
.NET
DocumentDb SDK
Download it from NuGet
10. Azure DocumentDb Training – Accessing DocumentDb from .NET
A unit of scale for transaction
for stored procedures and triggers
A unit of query throughput
capacity units allocated uniformly across
all collections)
A unit of replication
A collection is replicated three times
A container of JSON
documents
JSON docs inside of a collection can
vary dramatically
JS
JS
JS
101
010
11. Azure DocumentDb Training – Accessing DocumentDb from .NET
Collection-based RU Reservation
Capacity units allocated uniformly across all
collections)
Standard pricing tier with hourly
billing
$0.042/hour for mimimum 400RU/s
Performance levels can be
adjusted
Each collection = 10GB of SSD
Limit of 100 collections (1 TB)
Soft limit, can be lifted as needed per account
(with Support)
12. Azure DocumentDb Training – Accessing DocumentDb from .NET
Partitioning
Data Size
A single collection (currently*) holds 10GB
Throughput
3 Performance tiers with a max of 2,500 RU/sec
14. Azure DocumentDb Training – Accessing DocumentDb from .NET
Company application
CRM part where saving customer request as a bunch of
structured informations
Support part where showing open support requests
16. Azure DocumentDb Training – Accessing DocumentDb from .NET
Model your information as complex object graph
Query your objects as Json from Azure Portal to test your SQL
Interact Document API from .NET