NOT ONLY SQL
ebong2.org
1. 기존 RDBMS는 클러스터에 적합하지 않음
2. 비구조적 데이터의 양이 폭발적으로 증가함
(ex. SNS게시글)
3. 대부분 오픈소스임
왜 등장했을까?
 ACID의 성질을 가짐
 제한적인 Schema 구조
 수직적 확장(Scale-up) 확장에 의존
 모든 데이터가 같은 속성을 갖고 있어야 함
 튜플과 같은 단순한 형식의 데이터 저장
 BASE의 성질을 가짐
 유연한 Schema 구조(schema-less)
 수평적 확장(Scale-out) 확장 가능 (분산처리)
 데이터가 각각 다른 형식을 갖고 있어도 상관 없음
 집향 지향 (Aggregation Oriented)
 데이터 그래프 모델
차이점 비교
RDBMS NoSQL
Atomicity
Each transaction be “all or nothing”
Consistency
Transaction will bring the database from one valid state to another
Isolation
transactions were executed sequentially, one after the other
Durability
transaction has been committed, it will remain so, even
the event of power loss, crashes or errors.
ACID
Basically Available
The system does guarantee availability.
Soft-State
The state of the system may change over time, even without input.
Eventually consistency
The system will become consistent over time,
given that the system doesn’t receive input during that time.
BASE
ACID / BASE
일관성이 중요하지 않음
데이터 타입이 고정되지 않음
확장성이 좋음
빅데이터 처리에 유리
(대용량 로그 분석,
SNS 게시글,
데이터 마이닝)
CAP
Consistency
after an update operation all client see the same data
Availability
System is always on
Tolerance to network Partitions
The network will be allowed to lose arbitrarily many
messages sent from one node to another
->네트워크 장애 상황 중
일관성과 가용성 중 하나만 선택이 가능하다
PACELC
NOSQL의 모델별 분류
Key-value
Document
Column-family
Aggregate-oriented
Key-value
Document
Column-family
Grpah
AGREEGATE ORIENTED
KEY-VALUE ORIENTED
COLUMN FAMILY ORIENTED
DOCUMENT ORIENTED
데이터 모델링
참고
NoSQL에 대해서 간단히 알아보자! :http://blog.embian.com/6
AggregateOrientedDatabase : https://martinfowler.com/bliki/AggregateOrientedDatabase.html
NoSQL 데이타 모델링 #1-데이타모델과, 모델링 절차 : http://bcho.tistory.com/665
NoSQL : https://namu.wiki/w/NoSQL
NoSQL과 SQL : https://docs.microsoft.com/ko-kr/azure/documentdb/documentdb-nosql-vs-sql
CAP Theorem, 오해와 진실 : http://eincs.com/2013/07/misleading-and-truth-of-cap-theorem
NoSQL 간단한 소개: http://www.slideshare.net/WonchangSong1/no-sqlsimpleintro

Not only sql 정리

  • 1.
  • 2.
    1. 기존 RDBMS는클러스터에 적합하지 않음 2. 비구조적 데이터의 양이 폭발적으로 증가함 (ex. SNS게시글) 3. 대부분 오픈소스임 왜 등장했을까?
  • 3.
     ACID의 성질을가짐  제한적인 Schema 구조  수직적 확장(Scale-up) 확장에 의존  모든 데이터가 같은 속성을 갖고 있어야 함  튜플과 같은 단순한 형식의 데이터 저장  BASE의 성질을 가짐  유연한 Schema 구조(schema-less)  수평적 확장(Scale-out) 확장 가능 (분산처리)  데이터가 각각 다른 형식을 갖고 있어도 상관 없음  집향 지향 (Aggregation Oriented)  데이터 그래프 모델 차이점 비교 RDBMS NoSQL
  • 4.
    Atomicity Each transaction be“all or nothing” Consistency Transaction will bring the database from one valid state to another Isolation transactions were executed sequentially, one after the other Durability transaction has been committed, it will remain so, even the event of power loss, crashes or errors. ACID
  • 5.
    Basically Available The systemdoes guarantee availability. Soft-State The state of the system may change over time, even without input. Eventually consistency The system will become consistent over time, given that the system doesn’t receive input during that time. BASE
  • 6.
    ACID / BASE 일관성이중요하지 않음 데이터 타입이 고정되지 않음 확장성이 좋음 빅데이터 처리에 유리 (대용량 로그 분석, SNS 게시글, 데이터 마이닝)
  • 7.
    CAP Consistency after an updateoperation all client see the same data Availability System is always on Tolerance to network Partitions The network will be allowed to lose arbitrarily many messages sent from one node to another ->네트워크 장애 상황 중 일관성과 가용성 중 하나만 선택이 가능하다
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
    참고 NoSQL에 대해서 간단히알아보자! :http://blog.embian.com/6 AggregateOrientedDatabase : https://martinfowler.com/bliki/AggregateOrientedDatabase.html NoSQL 데이타 모델링 #1-데이타모델과, 모델링 절차 : http://bcho.tistory.com/665 NoSQL : https://namu.wiki/w/NoSQL NoSQL과 SQL : https://docs.microsoft.com/ko-kr/azure/documentdb/documentdb-nosql-vs-sql CAP Theorem, 오해와 진실 : http://eincs.com/2013/07/misleading-and-truth-of-cap-theorem NoSQL 간단한 소개: http://www.slideshare.net/WonchangSong1/no-sqlsimpleintro