Date post: | 16-Apr-2017 |
Category: |
Technology |
Upload: | shiju-varghese |
View: | 655 times |
Download: | 0 times |
Azure DocumentDB
Shiju Varghesehttps://github.com/shijuvar
About Me• Microsoft Azure MVP• Cloud Solutions Architect• Twitter - @shijucv • Github - @shijuvar
• http://weblogs.asp.net/shijuvarghese
Agenda• Introduction to DocumentDB• Demo with DocumentDB .NET Client SDK
Microsoft Azure Data Services• Relational
– SQL Database (PaaS)– SQL Server (IaaS)
• NoSQL– Azure Tables ( key-value store)– Azure DocumentDB (document database)
Azure DocumentDB Overview
DocumentDB• NoSQL Database• Managed as a Service• Schema-free, document database• Stored entities are JSON documents• Internet accessible – HTTP/REST• LINQ query provider for .NET• JavaScript as a modern replacement for T-SQL• Designed to scale into petabytes
DocumentDB SDKs.NETNode.jsJavaScript clientJavaScript serverPython
DocumentDB Resource ModelDatabase AccountDatabase• Collection– Document» Attachment
• Stored Procedure• Trigger• User-defined functions• User– Permission
.NET Client SDK
NuGet Packages• Microsoft.Azure.Documents.Client –Pre• Newtonsoft.Json
Create Databasevar client = new DocumentClient(new Uri(endpointUrl), authorizationKey); Database database = await client.CreateDatabaseAsync( new Database { Id = “Sales" });
Create CollectiondocumentCollection = new DocumentCollection { Id = “SalesCollection" };documentCollection = await client.CreateDocumentCollectionAsync(database.SelfLink,documentCollection);
Demo with .NET SDKWorking with DocumentDB Collections Writing server-side stored procedures in JavaScript
Nothing but demos
Get a Windows Azure Free Trial Accounthttp://azure.microsoft.com/ Azure DocumentDBhttp://azure.microsoft.com/en-us/services/documentdb/
Resources
Be well,write good code,
and stay in touch@shijucv
https://github.com/shijuvar