Few days back, I got a chance to attend Redis Meetup in Singapore, and it was an interesting session!
I thought, I could share some of my learnings from the session!
Major features:
- It’s a in-memory data structure - so you can expect more RAM if you want to store more data!
- It’s blazing fast!
- Easy and versatile
- No SQL
- Stores the data in key-value way
- Can be used as Cache buffer, Message broker, Pub/sub and in streams
- It’s a single threaded.
- Can be deployed in the “cluster” mode, scalable up to 1000 nodes!!
- It has self healing feature - if the master goes down, automatically slave node will become the master and align with the other nodes
It’s used in the WhatsApp, Twitter, Uber, Grab, Airbnb, Netflix and many more! - This is very interesting to me since I use most of these apps in my day-to-day life!
The only problem I heard is - It’s very difficult manage Redis Cluster and it doesn’t guarantee consistency!!
Quick start:
Installing in macOS:
- Download the latest stable version Redis 4.0.9 is the latest stable version.
- Extract the tar file
- Run "sudo make Install" from the root directory
Quick test:
item-ax30641:redis-4.0.9 kkolipaka$ redis-cli ping
PONG
item-ax30641:redis-4.0.9 kkolipaka$ redis-cli
127.0.0.1:6379> set mykey helloworld
OK
127.0.0.1:6379> get mykey
"helloworld"
Resources:
https://redis.io/