4. INTRO. Redis is…
Remote Dictionary Server
NoSQL Key-Value Store
Data Structures Server
‘Memcached on steroids’
5. INTRO. Redis is not…
SQL
Document Store
BigTable Store
6. POSITION The Grand Schema of things
Performance Memcached
Scalability &
Redis MongoDB
CouchDB
RDBMS
Depth of
Functionality
7. BENEFITS Key Value
Rediculously Fast
In Memory Database
Non-blocking IO, single threaded
100,000+ read/writes per second
Complements your existing storage
8. DATA Data Structures
String
Hash
List
Set
Sorted Set
9. DATA Data Structures
String
Hash
List
Set
Sorted Set
10. SETS Social Connections
friends
followers following
11. SETS SQL
Create a JOIN table
allowing self-reference on users
Create indices
Verify uniqueness
Write lots of code w/ slow queries
12. SETS Redis
For each user have two sets:
- following [1, 3, 5]
- followers [ 2, 3, 4, 7, 9]