본문 바로가기

개발 Note/it 이야기

AWS dynamodb 와 aurora RDB 비교

반응형

저는 dynamodb를 이용하여 간단한 시스템을 구축한 경험이 있었는데요.

DB 사용 비용이 상당히 비싼 것을 보고 좀 놀랐습니다.

 

제가 받은 청구내역은 아래 와 같이 약 5$정도 였는데요.

(실제 서비스 비용은 아니고 서비스전 개발중에 받은 청구서라 서비스시에 얼마가 나올지를 예상하기는 힘들었습니다.)

 

청구 내역 -

Amazon DynamoDB
 
USD 5.32
$0.00 per hour for 25 units of read capacity for a month (free tier)
18,600 ReadCapacityUnit-Hrs
USD 0.00
$0.00 per hour for 25 units of write capacity for a month (free tier)
18,600 WriteCapacityUnit-Hrs
USD 0.00
$0.00014098 per hour for units of read capacity beyond the free tier
6,282 ReadCapacityUnit-Hrs
USD 0.89
$0.0007049 per hour for units of write capacity beyond the free tier
6,282 WriteCapacityUnit-Hrs
USD 4.43

 

 

그런데, 아래 링크를 보면 제 경험에 비해 훨씬 저렴하게 비용이 산정되어있어서 놀랐는데요.

DB선정에 있어서 가격이 전부는 아니지만, 그래도 민감한 부분이기는 하기 때문에 DB를 어떻게 구성해서 사용해야 하는지는, 전문가(?) 면담이 필요한것 같습니다.

Pricing
A wide variety of payment methods exist,
with the smallest database starting
at an upfront $243, or $24.82 monthly for a year.
Dynamo DB's prices vary according to region,
the provided example utilizes the US East (N. Virginia) prices.

Free Tier

  • 25 GB of data storage
  • 2.5 million stream read requests from DynamoDB Streams
  • 1 GB of data transfer out, aggregated across AWS services  

Example Pricing

Applications with 10M reads ($2,5), 1M writes ($1,25),
1 GB ($0,25) and continuous backup ($0,20) $4,20 USD

 

 

링크: https://serverlesstalent.com/compare/amazon-aurora-serverless/dynamodb

 

serverless:talent | Hire to build Serverless-first applications

Hire specialist developers to build full-stack serverless applications | Reduce risks, time & cost to market

serverlesstalent.com

 

 

 

 

 

 

 

     
About Product
Amazon Aurora Serverless is an on-demand, auto-scaling configuration for Amazon Aurora. It automatically starts up, shuts down, and scales capacity up or down based on your application's needs. It enables you to run your database in the cloud without managing any database capacity.

With Aurora Serverless, you simply create a database endpoint, optionally specify the desired database capacity range, and connect your applications. You pay on a per-second basis for the database capacity you use when the database is active, and migrate between standard and serverless configurations with a few clicks in the Amazon RDS Management Console.


Amazon DynamoDB is a key-value and document database that delivers single-digit millisecond performance at any scale. It's a fully managed, multi-region, multi-active, durable database with built-in security, backup and restore, and in-memory caching for internet-scale applications.
DynamoDB differs from other Amazon services by allowing developers to purchase a service based on throughput, rather than storage. If Auto Scaling is enabled, then the database will scale automatically. Additionally, administrators can request throughput changes and DynamoDB will spread the data and traffic over a number of servers using solid-state drives, allowing predictable performance.

Pricing
A wide variety of payment methods exist, with the smallest database starting at an upfront $243, or $24.82 monthly for a year.
Dynamo DB's prices vary according to region, the provided example utilizes the US East (N. Virginia) prices.
Free Tier

  • 25 GB of data storage
  • 2.5 million stream read requests from DynamoDB Streams
  • 1 GB of data transfer out, aggregated across AWS services  

Example Pricing

Applications with 10M reads ($2,5), 1M writes ($1,25), 1 GB ($0,25) and continuous backup ($0,20) $4,20 USD
Performance
Onboarding
Good documentation that includes tutorials.

Scalability
On-demand auto scaling configuration, sharding.

Regions
US, Africa, Asia Pacific, China, South America, Middle East and Europe. The support varies across specific versions of each database engine, and across AWS Regions.

 
Backups 
Aurora backs up your cluster volume automatically and retains restore data for the length of the backup retention period. You can specify a backup retention period, from 1 to 35 days, when you create or modify a DB cluster.  Aurora backups are stored in Amazon S3.

Security
By default, Aurora Serverless v1 uses the Transport Layer Security/Secure Sockets Layer (TLS/SSL) protocol to encrypt communications between clients and your Aurora Serverless v1 DB cluster. It supports TLS/SSL versions 1.0, 1.1, and 1.2.


Onboarding
Rich in documentation, with a great tutorial to start things off.

Scalability
Has automatic scaling as an option.

Regions
United States, Africa, Asia Pacific, Europe, Middle East.

To connect programmatically to an AWS service, you use an endpoint. In addition to the standard AWS endpoints, some AWS services offer FIPS endpoints in selected Regions.

Backups 
Charged separatedly from the project. Has three different options: Continuous backups, on-demand, or restoring a table.

Security
AWS is responsible for protecting the infrastructure that runs AWS services in the AWS Cloud. Includes data protection, identity and access management, infrastructure security, and more.


Technical Details
  • Compatible with MySQL and PostgreSQL
  • High-performance storage subsystem
  • Automates and standardizes database clustering and replication
  • Supports the full breadth of Aurora features, including Global Database, Multi-AZ deployments, and read replicas.
  • Takes advantage of the familiar Amazon Relational Database Service (Amazon RDS) features for management and administration.
Amazon DynamoDB is a NoSQL database that supports key-value and document data models. Developers can use DynamoDB to build modern, serverless applications that can start small and scale globally to support petabytes of data and tens of millions of read and write requests per second.
  • Microsecond latency with DynamoDB Accelerator
  • Automated global replication with global tables
  • Read/write capacity modes
  • On-demand mode
  • ACID transactions
  • Encryption at rest
  • Point-in-time recovery
  • On-demand backup and restore