Slide 1

Slide 1 text

Introduction to DocumentDB Jalpesh Vadgama @Jalpesh

Slide 2

Slide 2 text

About Me  More than 11 years of experience in Microsoft.NET, Azure and related technologies.  Currently working as Technical Architect at Aartekone Global Services PVT. Ltd.  Awarded Microsoft Most valuable professional 4 times. Currently MVP in Visual Studio and Development Technologies.  Active Member of Ahmedabad User Group.  Frequently writing blog about Microsoft.NET and related technologies at http://www.dotnetjalps.com  Also awarded as Dzone most valuable blogger 17-04-2016 http://www.dotnetjalps.com 2

Slide 3

Slide 3 text

Agenda  What is Document database?  What is DocumentDB?  Why we should use DocumentDB?  How we can use Document DB 17-04-2016 http://www.dotnetjalps.com 3

Slide 4

Slide 4 text

What is Document Database?

Slide 5

Slide 5 text

What is Document database? 17-04-2016 http://www.dotnetjalps.com 5

Slide 6

Slide 6 text

What is Document database? 17-04-2016 http://www.dotnetjalps.com 6

Slide 7

Slide 7 text

What is DocumentDB?

Slide 8

Slide 8 text

What is DocumentDB  It is a new offering from Microsoft  It is a No SQL document base database-as-a-service offered by Microsoft Azure.  In details, it is a fully managed, highly scalable, highly queryable, truly schema free JSON document database.  It is perfect for the cloud architects and developers who need a highly scalable, highly queryable enterprise ready NoSQL document database.  It is a document store where data are stored in form of JSON as document under collections. 17-04-2016 http://www.dotnetjalps.com 8

Slide 9

Slide 9 text

Document and Collections  Document: User defined JSON Content, By default there will not be a schema that needs to be defined. You can consider it as a row in Relational database.  Collections: A collections works as container of JSON documents and associated JavaScript application logic. A collection can span one or more partitions/servers and can scable to handle practically unlimited volumes of storage. 17-04-2016 http://www.dotnetjalps.com 9

Slide 10

Slide 10 text

How it stores data in DocumentDB document1 document2 document3 document4 17-04-2016 http://www.dotnetjalps.com 10 Collection DocumentDB

Slide 11

Slide 11 text

Documents are schema free 17-04-2016 http://www.dotnetjalps.com 11 { “id”: 1, “firstName” : “Jalpesh”, “lastName”: “Vadgama” } { “id”: 1, “fullName” : “Jalpesh Vadgama” } document1 document2

Slide 12

Slide 12 text

Why DocumentDB?

Slide 13

Slide 13 text

DocumentDB Capabilities and Benefits  Elastically scalable throughput and storage  Easily scale up or scale down your DocumentDB JSON database to meet your needs.  You data is stored on Solid state disks.  It supports collections as container so virtually no limit for storage  Ad hoc queries with familiar SQL syntax:  You can query JSON Document through a familiar SQL syntax or Linq syntax.  Its automatically index all the documents so it supports real time queries. 17-04-2016 http://www.dotnetjalps.com 13

Slide 14

Slide 14 text

DocumentDB Capabilities and Benefits  JavaScript execution within the database:  You can write stored procedure, user defined functions and triggers on collections with JavaScript. No need to learn any other language.  It supports full transactional execution of JavaScript application logic directly inside the database engine.  Also supports Indexing with two Index types Hash and Range.  Fully managed:  Fully managed by Microsoft as database-as-service. You don’t need to manage Virtual machines and other stuff.  In-Built Security:  You can created the database and give user different kind of permissions. 17-04-2016 http://www.dotnetjalps.com 14

Slide 15

Slide 15 text

DocumentDB at Microsoft  MSN.com is now fully using DocumentDB.  Here are some statistics for MSN.com  425M unique MSN users with 100M direct authenticated users at any time.  Hadoop based analytics on the top of data.  Under 15ms write latency and single digit read latencies for 99% requests.  Available globally to server all MSN markets and users. https://azure.microsoft.com/en-in/blog/azure-documentdb-profile-of-msn- health-and-fitness-2/ 17-04-2016 http://www.dotnetjalps.com 15

Slide 16

Slide 16 text

How to use DocumentDB(Demo)

Slide 17

Slide 17 text

Sample code for the demo https://github.com/dotnetjalps/gab16augdemo/ 17-04-2016 http://www.dotnetjalps.com 17

Slide 18

Slide 18 text

Questions?

Slide 19

Slide 19 text

Contact me  Email: [email protected]  Twitter: @Jalpesh  Linkedin: http://www.linkedin.com/in/jalpeshvadgama  Facebook: https://www.facebook.com/jalpesh.vadgama  Github: https://github.com/dotnetjalps 17-04-2016 http://www.dotnetjalps.com 19

Slide 20

Slide 20 text

Thank you!