using redis like a pro€¦ · key-value store. a note about high availability replication append...

Post on 13-Jul-2020

4 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Storing Data in Redis like a pro@omerlh

The storage quest

q Meet our requirements

q Secure

q We can access it

q We can monitor it

Storage Requirements

q High Availability

q High Performance

q Strong Consistency

q SaaS Solution

q Key-Value Store

Wait, what about Redis?

Storage Requirements

✓ High Availability

✓ High Performance

✓ Strong Consistency

✓ SaaS Solution

✓ Key-Value Store

A note about high availability

● Replication

● Append Only File (AOF)

● Snapshots

● Redislabs SLA: 99.99%!

https://redislabs.com/redis-enterprise/technology/highly-available-redis/

Are we done?

What about security?

AUTH command

https://redis.io/commands/auth

Layers of security

● Very strong password (64 crypto random bytes)

● TLS with client-side certificate authentication

● IP filtering

● VNet/VPC

Are we done?

Solution: Rebrow

Rebrow

● Web UI for redis database

● Limit Redis access (read/delete)

● Optional: auth proxy

Are we done?

What about monitoring?

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

We need a better solution!

Simple solution: INFO command

https://redis.io/commands/INFO

Webdis

● HTTP interface for Redis

● Authentication/Authorization

● JSON output

A secure monitoring solution

Webdis

https://blog.solutotlv.com/keep-redis-shape-3-simple-steps

Are we done?

We have a storage:

✓ Strong Consistency, high availability storage

✓ Secure

✓ We can access it

✓ We can monitor it

Questions?

Demo

Checkout the code on GitHub

Come work with us!

jobs.soluto.com

Thank You!

@omerlh

@SolutoEng

top related