7. Is DocumentDB NoSQL database?
• database management system that is non relational
• schema less, avoids joins & easy to scale
• NoSQL =
8. 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
9.
10. 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
11. 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
13. 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
18. 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.
20. 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…
21. The End
• Radenko Zec – Lanaco
• http://blog.developers.ba
• @radenkozec