Amazon DocumentDB is a document database service that supports MongoDB workloads.
- Developer
- Country of Origin
- US
- Start Year
- 2019 [14]
- Project Type
- Commercial
- Compatible With
- MongoDB
- Operating System
- Hosted
- License
- Proprietary
Amazon DocumentDB is a document database service that supports MongoDB workloads.
Indexes[04][05]
Amazon DocumentDB supports various different types of indexes. Single field indexes are user-defined indexes on a single field of a document. Compound indexes are user-defined indexes on multiple fields of a document. Multikey indexes are indexes on array fields - although DocumentDB does not support this yet, its query planner can use multiple indexes in a single query, and so it can emulate a multikey index by creating an individual index for every desired array field.
There are additional properties available for all indexes. The TTL property removes documents from collections after an interval of time specified by the user. The Unique property rejects duplicate values for indexed fields. The Sparse property skips documents which do not contain the desired field. The Background property builds the index in the background so that other applications are able to access data even when the index is built.
Isolation Levels[06]
Within a single document, a write operation to a DocumentDB cluster is atomic. A read operation returns only data that was durable before the query execution started, and does not return any data that was modified after. Dirty reads are not possible.
Logging[09]
Logging is done via AWS CloudTrail, which logs all API calls by the clients as events. The most recent events are available on the CloudTrail console under 'Event history'. It is also possible to configure it so that the required details are stored in an Amazon S3 bucket.
Query Interface[10][11]
DocumentDB can be accessed using a Mongo shell to create, read, update and delete documents. It can also be accessed programmatically using the MongoDB drivers for Python, Node.js, PHP, Go, Java, and C#.
Stored Procedures[12][13]
Amazon DocumentDB does not support stored procedures, and unlike MongoDB it does not support stored javascript either.
Citations
14 sources- Amazon DocumentDB- Serverless, fully managed, MongoDB API-compatible document database amazon.com
- Managed Cloud Database -- Amazon DocumentDB (with MongoDB compatibility) Resources -- Amazon Web Services amazon.com
- Amazon DocumentDB - Wikipedia wikipedia.org
- What is Amazon DocumentDB (with MongoDB compatibility) - Amazon DocumentDB amazon.com
- Functional differences: Amazon DocumentDB and MongoDB - Amazon DocumentDB amazon.com
- Amazon DocumentDB: how it works - Amazon DocumentDB amazon.com
- What is Amazon DocumentDB (with MongoDB compatibility) - Amazon DocumentDB amazon.com
- $lookup (aggregation stage) - Database Manual - MongoDB Docs mongodb.com
- Logging Amazon DocumentDB API calls with AWS CloudTrail - Amazon DocumentDB amazon.com
- Connecting programmatically to Amazon DocumentDB - Amazon DocumentDB amazon.com
- What is Amazon DocumentDB (with MongoDB compatibility) - Amazon DocumentDB amazon.com
- What is Amazon DocumentDB (with MongoDB compatibility) - Amazon DocumentDB amazon.com
- Store a JavaScript Function on the Server - Database Manual - MongoDB Docs mongodb.com
- https://www.businesswire.com/news/home/20190109005887/en/AWS-Announces-Amazon-DocumentDB-MongoDB-Compatibility businesswire.com