Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append...
Transcript of Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append...
![Page 1: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/1.jpg)
Storing Data in Redis like a pro@omerlh
![Page 2: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/2.jpg)
The storage quest
q Meet our requirements
q Secure
q We can access it
q We can monitor it
![Page 3: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/3.jpg)
Storage Requirements
q High Availability
q High Performance
q Strong Consistency
q SaaS Solution
q Key-Value Store
![Page 4: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/4.jpg)
![Page 5: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/5.jpg)
Wait, what about Redis?
![Page 6: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/6.jpg)
Storage Requirements
✓ High Availability
✓ High Performance
✓ Strong Consistency
✓ SaaS Solution
✓ Key-Value Store
![Page 7: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/7.jpg)
A note about high availability
● Replication
● Append Only File (AOF)
● Snapshots
● Redislabs SLA: 99.99%!
https://redislabs.com/redis-enterprise/technology/highly-available-redis/
![Page 8: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/8.jpg)
Are we done?
![Page 9: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/9.jpg)
What about security?
![Page 10: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/10.jpg)
AUTH command
https://redis.io/commands/auth
![Page 11: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/11.jpg)
Layers of security
● Very strong password (64 crypto random bytes)
● TLS with client-side certificate authentication
● IP filtering
● VNet/VPC
![Page 12: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/12.jpg)
Are we done?
![Page 13: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/13.jpg)
![Page 14: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/14.jpg)
Solution: Rebrow
![Page 15: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/15.jpg)
Rebrow
● Web UI for redis database
● Limit Redis access (read/delete)
● Optional: auth proxy
![Page 16: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/16.jpg)
Are we done?
![Page 17: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/17.jpg)
What about monitoring?
![Page 18: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/18.jpg)
Our use case: Keeping Redis in shape
● Our Redis plan has storage limits
● Redislabs will send a mail when we near the limits
● Issues:
○ Not flexible
○ Alert routing
![Page 19: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/19.jpg)
We need a better solution!
![Page 20: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/20.jpg)
Simple solution: INFO command
https://redis.io/commands/INFO
![Page 21: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/21.jpg)
![Page 22: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/22.jpg)
![Page 24: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/24.jpg)
![Page 25: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/25.jpg)
A secure monitoring solution
Webdis
https://blog.solutotlv.com/keep-redis-shape-3-simple-steps
![Page 26: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/26.jpg)
Are we done?
![Page 27: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/27.jpg)
We have a storage:
✓ Strong Consistency, high availability storage
✓ Secure
✓ We can access it
✓ We can monitor it
![Page 28: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/28.jpg)
Questions?
![Page 31: Using redis like a pro€¦ · Key-Value Store. A note about high availability Replication Append Only File (AOF) Snapshots ... Our use case: Keeping Redis in shape Our Redis plan](https://reader033.fdocuments.us/reader033/viewer/2022050103/5f426ceb87d78f0ce42a51c6/html5/thumbnails/31.jpg)
Thank You!
@omerlh
@SolutoEng