azure documentdb training - accessing documentdb from .net
TRANSCRIPT
« »
Azure DocumentDb Training – Accessing DocumentDb from .NET
How do we interactwith DocumentDb
from a .NET application?
Azure DocumentDb Training – Accessing DocumentDb from .NET
Using DocumentDb from .NET
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.
Azure DocumentDb Training – Accessing DocumentDb from .NET
Json natively serialize
to .NET objects with
JSON.NET library
Azure DocumentDb Training – Accessing DocumentDb from .NET
DocumentDb is Platform as a ServiceNo OnPremise
RESTful APIAll DocDb elements public and accessible as Resource Uri
.NETDocumentDb SDK
Download it from NuGet
Azure DocumentDb Training – Accessing DocumentDb from .NET
From the Azure Portal
Azure DocumentDb Training – Accessing DocumentDb from .NET
demo
Modeling documents
in .NET
Azure DocumentDb Training – Accessing DocumentDb from .NET
Collections
Azure DocumentDb Training – Accessing DocumentDb from .NET
A unit of scale for transactionfor stored procedures and triggers
A unit of query throughputcapacity units allocated uniformly across all collections)
A unit of replicationA collection is replicated three times
A container of JSON documentsJSON docs inside of a collection can vary dramatically
JS
JS
JS
101010
Azure DocumentDb Training – Accessing DocumentDb from .NET
Collection-based RU ReservationCapacity 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 SSDLimit of 100 collections (1 TB)
Soft limit, can be lifted as needed per account (with Support)
Azure DocumentDb Training – Accessing DocumentDb from .NET
Partitioning
Data SizeA single collection (currently*) holds 10GB
Throughput3 Performance tiers with a max of 2,500 RU/sec
Azure DocumentDb Training – Accessing DocumentDb from .NET
demo
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
Azure DocumentDb Training – Accessing DocumentDb from .NET
Recap
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