본문 바로가기
AWS_BASIC

#3 Database - Various Amazon DB functions

by 중앙정보부장 2020. 11. 20.

1.ElasicCache(In memory)

"Amazon ElstiCache는 in-memory caching을 관리하고 setup하는 것을 간단하게 만들어주는 웹서비스이다"

 

 

caching 이란 개념을 모르겠다. 찾아보니

Caches are in-memory database with high performance, low latency

 

" 많은 사람들이 B라는 데이터를 조회한다고 예상했을 때 이 B데이터 조회 결과값을 캐싱(메모리)에 올려놓고 다음 사람이 조회했을 경우 데이터베이스에 직접 가지 않고 결과값을 바로 내려주는 것을 뜻한다."

 

"ElastiCache는 주로 데이터베이스의 처리 결과를 메모리(RAM)에 저장했다가 다음 요청시에 저장된 결과를 반환하는 것을 통해서 에플리케이션을 빠르게 구동할 수 있게 해준다. 이번 시간에는 ElastiCache를 이용해서 데이터베이스의 로를 줄이고 더 빠른 웹에플리케이션을 만드는 방법에 대해서 알아본다" (생활코딩).

 

ElasicCache helps reduce load off database for read intensive worklods

 

한마디로 데이터베이스 처리결과를 메모리에 저장해 놓으면 다음 요청시에 데이터베이스에 다시 돌아갈 필요 없이

저장해 놓은 메모리를 쓰면 되니까 빨리 찾을수 있다. 그게 ElasicCache의 역할이다. 

 

AWS꺼기 때문에 얘내들이 OS maintenance, patching, optimization 다 하는것 같다. 

 

ELB -> EC2 Instance -> (fast) ElastiCache In memory DB

                           -> (slow) SQL DB

 

 

 

2. DynamoDB (NoSQL)

 

-Highly available with replication across 3AZ

-NoSQL DB

-Serverless database (서버가 필요없다)

-Millions of requests per seconds

-Single-digit millisecond latency - low latency retrieval

-Integrated with IAM

-Low cost and auto scaling capabilities

 

 

3.Redshift (Data warehouse)

 

-Based on PostgreSQL but it's not for OLTP

-OLAP

 

*여기서 OLTP, OLAP 란?

 

OLTP(On-Line Transaction Processing, 거래 처리 영역)

비즈니스 활동 자체를 지원 -> 비즈니스 트랜잭션의 원활한 처리를 최우선으로 함

빈번한 거래 데이터의 입력, 수정, 삭제 과정에서의 효율성, 즉 효과적인 갱신이 주요 목표 (RDS)

 

OLAP(On-Line Analytical Processing, 분석 정보 영역)

거래 데이터를 기초로 하여 효과적으로 분석하고 조회하는 것이 주요 관심사

 

-10x better performance than other data warehouse

-Columnar storage of data (The data is stored in Column no row based) 

-Massively Parallel Query Execution(MPP)

-Pay as you go based on the instances provisioned

 

 

4.Amazon EMR (Hadoop clusters(big data)

 

- Elastic MapReduce

- EMR helps creating Hadoop clusters(big data)  

- Clusters can be made of hundreds of EC2 instances

 

Use cases: data processing, machine learning, web indexing, big data

 

5.Athena (Serverless SQL)

 

- Fully serverless database with SQL capabilities

- Used to query data in S3

- Pay per query (쿼리 쓴만큼 돈을 냄 )

 

Use Case: one-time SQL queries, serverless queries on s3

 

6.DMS (Database migration service)

데이터 베이스를 옮길때 쓰는것이다. 

 

Source DB -> EC2 instance Running DMS -> Target DB

 

Homogeneous migration 과 Heterogeneous migration 을 둘다 지원한다. 

 

7. AWS Glue(ETL Serverless)

 

-Managed extract, transform, load (ETL) service

-Prepare and transform data for analytics

-Serverless service

 

 

Summary

 

 

'AWS_BASIC' 카테고리의 다른 글

# CloudFormation , Beanstalk  (0) 2020.12.21
#4 ECS  (0) 2020.12.19
#3 Database  (0) 2020.11.19
#2 EBS VS EFS  (0) 2020.11.17
#1 Snowball  (0) 2020.11.17

댓글