Amazon DocumentDB

Amazon DocumentDB

Amazon Cloud Concepts Learning --> Day27

Amazon DocumentDB

  • Fast, Reliable and Fully managed JSON document database service.

  • MongoDB compatible.

  • When your demands for database storage increase, Amazon DocumentDB automatically expands the size of your storage volume.

  • Storage volume grows in increments of 10 GB and max is 64 TB.

  • Amazon DocumentDB runs in Amazon Virtual Private Cloud (Amazon VPC), so you can isolate your database in your own virtual network.

  • You can encrypt your database with keys that are user defined and controlled through KMS.

  • The point-in-time recovery feature of Amazon DocumentDB allows for cluster backups. With the use of this, you may roll back your cluster to any point in the last five minutes of your retention period.

  • Amazon DocumentDB backups are automatic, incremental, and continuous.

Amazon DocumentDB Working

  • Creating a cluster is the first step in using DocumentDB.

  • A cluster is made up of zero or more database instances and a cluster volume that manages the data for these instances.

  • Cluster volume is a virtual database storage volume that spans across many Availability zones where each AZ has a cluster copy.

  • Amazon DocumentDB clusters are made up of two parts

    • Cluster Volume

      Provides very resilient and accessible storage by using a cloud-native storage solution to duplicate data six ways across three Availability Zones. DocumentDB cluster has exactly one cluster volume.

    • Instances

      Assign processing power to the database so that it may write to and read from the cluster storage volume. There can be 0–16 instances in an Amazon DocumentDB cluster.

  • Instances serve one of two roles:

    • Primary Instance

      Handles all data alterations to the cluster volume and supports read and write operations. There is one primary instance per Amazon DocumentDB cluster.

    • Replica Instance

      Only read operations are supported. In addition to the primary instance, an Amazon DocumentDB cluster can include up to 15 replicas. You may distribute read workloads by having many replicas.

Amazon DocumentDB Endpoints

A colon (:) separates the port number and the host address that make up an endpoint.

Cluster Endpoint

  • Connects to your cluster’s current primary instance.

  • Used for both read and write operations.

  • Provides failover support.

Reader Endpoint

  • Used for read only operations.

  • Connect to read replicas

  • DocumentDB cluster has exactly one reader endpoint.

Instance Endpoint

  • Connects to a specific instance within your cluster.

  • DocumentDB cluster has one instance endpoint per active instance.

  • Use for specialized workloads that will only affect specific replica instances.

References & Additional Resources

https://aws.amazon.com/documentdb/faqs/


Note: All Images are from AWS Official Document

"Thank you for reading! If you found this blog helpful, don't forget to subscribe and follow for more insightful content. Your support keeps me motivated to bring you valuable insights. Stay updated and never miss out on our latest posts. Feel free to leave comments or suggestions for future topics. Happy learning!"

awslearner.hashnode.dev/amazon-web-services..

https://awslearner.hashnode.dev/aws-beginner-level-project-ideas