본문 바로가기

좋아하는 것_매직IT/96.IT 핫이슈

SurrealDB - 분산 Document-Graph 데이터베이스 (github.com/surrealdb)

반응형

SurrealDB - 분산 Document-Graph 데이터베이스를 소개합니다.

해당 깃허브에서는 아래와 같이 소개하고 있고요..

What is SurrealDB?

SurrealDB is an end-to-end cloud native database for web, mobile, serverless, jamstack, backend, and traditional applications. SurrealDB reduces the development time of modern applications by simplifying your database and API stack, removing the need for most server-side components, allowing you to build secure, performant apps quicker and cheaper.

한마디로, 분산 Document-Graph 데이터베이스라고 머릿속에 넣어두시면 됩니다. 

참고로 설치는 아래와 같이 진행하시면 될것 같네요..

Installation

SurrealDB is designed to be simple to install and simple to run - using just one command from your terminal. In addition to traditional installation, SurrealDB can be installed and run with HomeBrew, Docker, or using any other container orchestration tool such as Docker Compose, Docker Swarm, Rancher, or in Kubernetes.

   Install on macOS

The quickest way to get going with SurrealDB on macOS is to use Homebrew. This will install both the command-line tools, and the SurrealDB server as a single executable. If you don't use Homebrew, follow the instructions for Linux below to install SurrealDB.

brew install surrealdb/tap/surreal

   Install on Linux

The easiest and preferred way to get going with SurrealDB on Unix operating systems is to install and use the SurrealDB command-line tool. Run the following command in your terminal and follow the on-screen instructions.

curl -sSf https://install.surrealdb.com | sh

   Install on Windows

The easiest and preferred way to get going with SurrealDB on Windows is to install and use the SurrealDB command-line tool. Run the following command in your terminal and follow the on-screen instructions.

iwr https://windows.surrealdb.com -useb | iex

   Run using Docker

Docker can be used to manage and run SurrealDB database instances without the need to install any command-line tools. The SurrealDB docker container contains the full command-line tools for importing and exporting data from a running server, or for running a server itself.

docker run --pull --rm -p 8000:8000 surrealdb/surrealdb:latest start


SurrealDB의 주요 특징은 아래와 같습니다. 

  • DB면서 실시간 협업 API 백엔드로 동작
  • REST API, SurrealQL/JSON-RPC over WebSocket, GraphQL(지원 예정)
  • 멀티테넌시 데이터 분리, Schemafull/Schemaless, 멀티테이블/멀티로우 트랜잭션, GeoSpatial 쿼리
  • 다양한 함수들 지원 : Array, Http, Math, String, Geo, Time, Embedded JavaScript,..
  • JavaScript/Go/Rust/Deno SDK 제공
    → WASM, Node.js, Python, C, PHP, Swift, Java SDK 제공 예정
  • 맥/리눅스/윈도우 설치 가능
  • 싱글노드(인메모리)), 분산(TiKV 클러스터)로 동작
    → 싱글노드(on-disk), 분산(RAFT) 등으로도 동작 예정
  • 데이터베이스 코어는 BSL(Business Source License)로 공개

좀더 자세한 내용은 아래 깃허브를 참고하시면 좋을것 같고요..

오늘의 블로그는 여기까지고요..
항상 믿고 봐주셔서 감사합니다.

728x90
300x250