저장소
https://github.com/ljw1126/helloCaching/tree/master/redis
Redis Replica, auto-failover(Sentinel, Cluster), Proxy (HAProxy, Predixy)
1. Redis
Re
mote
Di
ctionary
S
erver
2009년 살바토레 산필리포(Salvatore Sanfilippo)가 개발
2015년 Redis Labs가 지원 (엔터프라이즈 모듈은 별도 라이센스 판매)
Session Store, Cache, Job Queue(Pub/Sub), Leader board, Geospatial, Limit Rater 등 활용 가능
데이터
관점에서
Storage
영속성
관점에서 전통적인
DBMS
의 역할을 수행
어플리케이션에서 사용할 수 있는 유용한 기능 제공하는
Middleware
Single Thread 동작
백업 지원 : AOF, RDB
In-memory DB
데이터를 디스크에 저장하지 않고, 휘발성이 RAM에 저장
Redis의 경우 백업 기능(AOF, RDB)으로 영속성 지원
빠른 속도
Read
Write
비교
HDD
130 MB/s
120 MB/s
SSD
500 MB/s
450 MB/s
HDD보다 3~4배 빠름
RAM
20,000 MB/s
20,000 MB/s
SSD보다 40배 빠름
Key-Value 구조
단순한 구조의 데이터로 높은 성능과 확장성이 필요할 때 사용