Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to Azure DocumentDB

682 views

Published on

This is short introduction presentation for Azure DocumentDB.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Introduction to Azure DocumentDB

  1. 1. Introduction to Microsoft Azure DocumentDB Radenko Zec - Lanaco
  2. 2. Agenda • NoSQL • Introduction to Azure DocumentDB • Storing data • Querying data • Transactions over data
  3. 3. No SQL in Database what ???
  4. 4. Is DocumentDB NoSQL database? • database management system that is non relational • schema less, avoids joins & easy to scale • NoSQL =
  5. 5. DocumentDB at MSN.com • over 425 million unique users • store 20TB of JSON document data • available globally to serve all markets • under 15ms writes and single digit ms reads
  6. 6. Resource Model • Entities addressable by logical URI • Partitioned for scale out • Replicated for HA • Entities represented as JSON • Accounts scale out through addition of capacity units Interaction Model • RESTful interaction over HTTP • HTTP and TCP connectivity
  7. 7. Attachments • Store large blobs/media outside core storage • Document DB managed – Submit raw content in POST – Document DB stores into Azure Blob storage (2GB today) – Document DB manages lifecycle
  8. 8. DEMO - Getting Started
  9. 9. Indexing in DocumentDB • By default everything is indexed • Indexing is not a B-Tree (based on BWTree used in Hackaton) and works really well under write pressure and at scale
  10. 10. DocumentDB Consistency options
  11. 11. DocumentDB Consistency options
  12. 12. Tunning indexes • synchronous (Consistent) • asynchronous (Lazy)
  13. 13. Sharding
  14. 14. Multi Document JavaScript Transactions • Execution wrapped in an implicit transaction • Preregistered and scoped to a collection • Performed with ACID guarantees • If exceptions are thrown through the server side execution of JavaScript application code, the entire transaction is rolled back.
  15. 15. DEMO – Queries, CRUD, Stored Procedures
  16. 16. Known limits • Stored procedure 5 second execution timeout • Index policies can be specified only at collection creation time • no aggregate functions for now, no datetime type • no joins between documents and collections • Maximum request size of document and attachment 512KB • Maximum response size - 1MB • Maximum Request Units / sec per collection 2000 etc…
  17. 17. The End • Radenko Zec – Lanaco • http://blog.developers.ba • @radenkozec
  18. 18. Ne zaboravite ispuniti upitnike. Čekaju vas vrijedne nagrade!

×