Cloud Databases
Cloud databases are managed database services provided by cloud platforms that handle provisioning, patching, backups, scaling, and high availability. They let teams focus on data modeling and queries while the provider operates the underlying infrastructure.
itCloud computing | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Don't Panic
Don't Panic — Cloud Databases
A cloud database is a database reached over a network while a cloud provider operates more of the machinery beneath it. That is useful because hardware replacement, maintenance, backup mechanisms, and failover mechanisms stop arriving as separate household chores. It is not magic. The data model, queries, access rules, recovery goals, and application behavior still require someone to decide what good looks like. The machinery has moved downstairs; the responsibility has not vanished into a tasteful fog.
Start with the access pattern, meaning the recurring ways an application reads, writes, filters, and aggregates data. This is the bit everything else hangs from. Relational databases suit related records, constraints, joins, and transactions. Documents suit self-contained records whose fields change. Key-value stores suit known lookups. Graph and time-series databases suit relationships and timestamped measurements. A system can use several models, but each new database brings another security policy, recovery path, monitor, and failure mode. The committee meeting has merely acquired more chairs.
Then choose the operating model. A self-managed engine gives more host control. A managed engine keeps a familiar connection model while the provider performs defined maintenance. A cloud-native service can add partitioning, multi-region replication, or elastic capacity. A driver connecting successfully proves only that it connected successfully, which is a remarkably narrow achievement. SQL behavior, data types, transactions, extensions, backups, maintenance, and failover can still differ.
The surprise is that scale is often a data-placement problem wearing a capacity hat. A partition key, the value used to distribute and locate data, can spread traffic or send it all toward one unlucky slice. Read replicas add read capacity and can return older data. High-availability standbys exist for failover and might not serve reads. Replication keeps live copies; backups preserve recoverable state. Those are different jobs, even when a dashboard presents them with equally cheerful ticks.
Next, use the Cheatsheet to compare models and failure mechanisms. Use the Practice tab to turn a workload into an evaluation worksheet, then try the Exercise to defend a choice for a ticketing application. The Reference tab supplies the provider documentation once the questions have names. Keep the Field Notes for the operational traps that show up after a product comparison has declared victory far too early.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://csrc.nist.gov/pubs/sp/800/145/final
Supports
- Cloud computing provides on-demand network access to pooled configurable resources
- Cloud services can be provisioned and released with limited provider interaction
- Cloud computing includes defined service models and measured-service characteristics
- https://learn.microsoft.com/en-us/azure/architecture/data-guide/technology-choices/understand-data-store-models
Supports
- Access patterns should guide selection of a data model before selection of a service
- Relational databases support defined schemas, integrity, joins, and multi-row transactions
- Document, key-value, graph, and time-series stores fit distinct data shapes and access patterns
- A production system can use several storage models when access patterns or life cycles diverge
- Each additional model adds operational complexity that must be justified
- https://docs.cloud.google.com/sql/docs/introduction
Supports
- Cloud SQL is a managed relational service for MySQL, PostgreSQL, and SQL Server
- A managed relational service can operate backups, high availability, failover, connectivity, maintenance, monitoring, and logging
- Customers still configure databases, users, resources, flags, high availability, and connectivity
- Managed-service updates can include hardware, online, and maintenance updates with different interruption behavior
- Cloud SQL cost depends on provisioned storage, compute, memory, location, network egress, and address use
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html
Supports
- RDS manages backups, patching, failure detection, and recovery for managed relational instances
- Instance classes and storage types have different performance and price characteristics
- VPC placement and security groups control database network access
- Multi-AZ deployments provide data redundancy and failover with deployment-specific read behavior
- Cross-Region replication can be asynchronous
- Database monitoring includes health, metrics, load, logs, and events
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.html
Supports
- Security for a managed database follows a shared-responsibility model
- Customer responsibilities depend on the service, data sensitivity, organizational requirements, and law
- Database protection includes VPC placement, identity policies, security groups, transport encryption, storage encryption, and engine permissions
- https://learn.microsoft.com/en-us/azure/cosmos-db/partitioning
Supports
- A partition key determines the logical partition for an item
- Partition-key choice affects distribution and application performance
- A logical partition defines transaction scope for supported Cosmos DB transactions
- Physical partitions distribute storage and throughput and are managed by the service
- Poorly distributed partition keys can create scaling and query problems
- https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-manage-consistency
Supports
- A distributed database can expose configurable consistency at account, client, or request scope
- Session tokens support read-your-write behavior and are associated with partitions
- Strong account-level consistency uses synchronous replication across configured regions
- Applications must account for consistency configuration in client behavior
- https://docs.cloud.google.com/spanner/docs/true-time-external-consistency
Supports
- Spanner assigns transaction timestamps using TrueTime
- Multi-version concurrency control supports consistent reads without blocking writes
- External consistency preserves a serial transaction order that matches observable commit order
- Cross-region database design requires verification of documented transaction consistency semantics
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html
Supports
- Automated backups have a configured retention period
- Point-in-time recovery restores to an eligible point inside the retention period
- Manual snapshots have a lifecycle independent from automated backups
- Backup retention and deletion behavior differ from the behavior of live replicas
- Recovery claims require a usable retained backup and a tested restore path
- https://docs.cloud.google.com/architecture/dr-scenarios-planning-guide
Supports
- Recovery time objective limits acceptable application outage duration
- Recovery point objective limits the acceptable period of data loss after an incident
- Smaller recovery objectives generally increase cost and administrative complexity
- High availability and disaster recovery overlap but are not identical
- Recovery planning should include well-tested procedures
- https://docs.cloud.google.com/architecture/database-migration-concepts-principles-part-1
Supports
- Database migration moves data from source databases to target databases and switches clients to the target
- Migration can restructure or transform data
- Migration approaches include migration systems, engine replication, and custom functionality
- Migration systems extract, transport, and optionally transform data
- Migration planning must account for sources, targets, ongoing changes, and client cutover
- https://docs.aws.amazon.com/prescriptive-guidance/latest/best-practices-migration-cutover/cutover-stage.html
Supports
- Cutover preparation includes functional and non-functional testing
- Operational readiness includes monitoring, alerting, support, and test completeness
- Rollback planning should define triggers, data handling, and decision ownership
- Writes accepted after cutover complicate a return to a stale source
- Restore timing should be tested rather than inferred from configuration
- https://aws.amazon.com/about-aws/whats-new/2009/10/27/introducing-amazon-relational-database-service/
Supports
- Amazon RDS was introduced on 2009-10-27 as a managed relational database service
- https://aws.amazon.com/about-aws/whats-new/2012/01/18/aws-announces-dynamodb/
Supports
- Amazon DynamoDB was announced on 2012-01-18 as a fully managed NoSQL database service
- https://aws.amazon.com/blogs/aws/now-available-amazon-aurora/
Supports
- Amazon Aurora became available to AWS customers in July 2015 after its 2014 announcement
- https://cloud.google.com/blog/products/gcp/cloud-spanner-is-now-production-ready-let-the-migrations-begin/
Supports
- Cloud Spanner became generally available in May 2017
- https://azure.microsoft.com/de-de/blog/azure-cosmos-db-microsofts-globally-distributed-multi-model-database-service/
Supports
- Azure Cosmos DB became generally available on 2017-05-10
- https://cloud.google.com/blog/products/gcp/with-multi-region-support-in-cloud-spanner-have-your-cake-and-eat-it-too
Supports
- Cloud Spanner multi-region configurations became generally available in November 2017
- https://aws.amazon.com/about-aws/whats-new/2018/08/amazon-aurora-serverless-brings-serverless-computing-to-relational-databases/
Supports
- Aurora Serverless became generally available on 2018-08-09
- https://azure.microsoft.com/en-us/blog/?p=2281
Supports
- Azure SQL Database Managed Instance general-purpose tier became generally available on 2018-10-01
- https://cloud.google.com/blog/products/databases/announcing-the-general-availability-of-alloydb-for-postgresql/
Supports
- AlloyDB for PostgreSQL became generally available on 2022-12-14
- https://discord.com/blog/how-discord-stores-trillions-of-messages
Supports
- Discord documented hot partitions causing broader database-cluster latency effects
