Amazon Document DBDatabases

ACG LINK

Amazon DocumentDB: Overview and Configuration Example

Amazon DocumentDB is a fully managed NoSQL database service designed to store, query, and index JSON-like documents. It is compatible with MongoDB, providing a familiar interface and tools for developers who are already using MongoDB. Here's a detailed overview of Amazon DocumentDB along with a configuration example:

Features of Amazon DocumentDB

  1. Managed NoSQL Database:

    • Amazon DocumentDB is a fully managed NoSQL database service.
  2. Compatibility with MongoDB:
    • Offers compatibility with the MongoDB 3.6 API, allowing you to use existing MongoDB tools and drivers.
  3. Scalability:
    • Allows you to scale your cluster by adding read replicas to handle increased read workloads.
  4. Durability and Availability:
    • Provides high durability and availability by replicating data across multiple Availability Zones.
  5. Security Features:
    • Offers encryption at rest and in transit, fine-grained access control, and integration with AWS Key Management Service (KMS).
  6. Automated Backups and Snapshots:
    • Enables automated backups and manual snapshots for data protection and recovery.
  7. Indexing and Querying:
    • Supports indexing and querying of JSON-like documents using the MongoDB query language.
  8. Data Compression:
    • Uses a native wire protocol to compress data for efficient storage and retrieval.

Configuration Example

Let's create a simple Amazon DocumentDB cluster using the AWS Management Console:

  1. Login to AWS Console:

    • Navigate to the AWS Management Console.
  2. Open DocumentDB Console:
    • Click on the "DocumentDB" service in the console.
  3. Create Cluster:
    • Click "Create cluster" and provide the cluster details.
    • Specify the cluster identifier, master username, and password.
  4. Configure Cluster:
    • Choose the instance type, replication settings, and DocumentDB engine version.
  5. Set Up VPC and Security:
    • Configure the Amazon Virtual Private Cloud (VPC) details, including VPC security groups.
  6. Enable Encryption (Optional):
    • Optionally, enable encryption at rest using AWS Key Management Service (KMS).
  7. Configure Additional Settings (Optional):
    • Optionally, configure additional settings such as backup retention period, maintenance window, and tags.
  8. Review and Create:
    • Review the cluster configuration and click "Create cluster."
  9. Monitor Cluster Creation:
    • Monitor the cluster creation process in the DocumentDB console until the status becomes "Available."
  10. Connect to Cluster:
    • Once the cluster is available, connect to it using a MongoDB-compatible query client or tool.
  11. Load Data and Run Queries:
    • Load data into the DocumentDB cluster and run MongoDB queries using the MongoDB query language.
  12. Scale Cluster (Optional):
    • Optionally, scale the cluster by adding read replicas to handle increased read workloads.
  13. Backup and Restore (Optional):
    • Optionally, configure automated backups and manual snapshots for data protection.
  14. Terminate Cluster (Optional):
    • Optionally, you can delete the DocumentDB cluster through the console if it's no longer needed.