NoSQL

[NoSQL]과 JSON

개발자_옹이양 2022. 4. 28. 23:56

Why NoSQL?

현대 앱 요구 해결 새로운 종류의 데이터베이스 필요,

  • High volumes of data (대량의 데이터)
  • Data with many different sources and forms (다양한 소스와 양식의 데이터)
  • Dynamic data schemas to store different types of data (다양한 타입의 데이터를 저장하는 동적 데이터 스키마)
  • Using high-velocity and/or real-time data (고속, 실시간 데이터)

NoSQL 특징

  • Data store is non-relational ( 비관계형 데이터 )
  • Designed for scale-out (스케일 아웃을 위한 설계)
  • Does not enforce a specific schema (특정 스키마를 강제하지 않음)

NoSQL databases generally do not enforce relational constraints or put locks on data, making writes fast. They are also often designed for horizontally scale via sharding or partitioning, which allows them to maintain high-performance regardless of size.

(NoSQL 데이터베이스는 일반적으로 관계형 제약 조건을 적용하거나
데이터에 잠금을 설정하지 않아 쓰기 속도가 빨라집니다. 또한 샤딩 또는 파티셔닝을 통한 수평 확장을 위해 설계되어 크기에 관계없이 고성능을 유지할 수 있습니다.)


일반적인 NoSQL의 4가지 모델

  • Documents
  • Key-value
  • Column-Family
  • Graph

앞으로 본인이 쓸 Azure Cosmos DB SQL API의 모델은 Documents이며 JSON을 지원 한다.


JSON?

lightweight data format. (경량 데이터 형식)

 

JSON was built to be highly compatible with the literal notation of an object in the JavaScript language

(JSON은 자바스크립트 언어에서 객체의 리터럴 표기법과 호환되도록 제작 됨.)

 

Many frameworks, browsers, and even databases support JavaScript natively making JSON a popular format for transmitting and storing data.

(많은 프레임워크, 브라우저, 심지어 데이터베이스도 자바스크립트를 지원하여 JSON을 데이터 전송과 저장에 널리 사용되는 포맷으로 만든다.)


Example of a JSON dcoument

{
  "device": {
    "type": "mobile"
  },
  "sentTime": "2019-11-12T13:08:42",
  "spoolRefs": [
    "6a86682c-be5a-4a4a-bacd-96c4d1c7ece6",
    "79e78fe2-93aa-4688-89db-a7278b034aa6"
  ]
}

 

 

자료&내용 출처

 

'NoSQL' 카테고리의 다른 글

[NoSQL, Azure CosmosDB] why azure csomosdb?  (0) 2022.04.29