Upload
nils-de-moor
View
121
Download
1
Tags:
Embed Size (px)
DESCRIPTION
A quick view on the benefits of storing your data in redis with a dev and/or ops hat on.
Citation preview
redis
Nils De Moor - @ndemoor#hacktheelections
Text 3
Text2
Text1
Hi! I’m Nils De Moor,CTO & cofounder at WooRank.This is our dream team.
That’s me!
yrs oldnationspeepsavg age
4 82027
visitors/dayreports/monthcriteria/report
40k600k
120
Text 3
Text2
Text1
Text 3
Text2
Text1
Text 3
Text2
Text1
Text 3
Text2
Text1
Text 3
Text2
Text1
Text 3
Text2
Text1
Now this is the story all about how
LAMP
LAMP
memcache
MySQL
Scaling up
Sorting complexities
Serialize!
Uhm...
Memcache
Memcache
strings
key value
get, set, expire, ttl,(in|de)cr(by), getrange, bitop, bitcount, setbit
hashes
field1 value1
hset, hget, hgetall,hkeys, hvals, hlen,
hincrby
field2 value2...
key:
lists
a b c b d a e
lpush, lpop, rpush, rpop,llen, lindex, lset, lrange
sets
a
sadd, srem, spop,sunion, sdiff, sinter,sscan, smove, sismember
bc
de
f
sorted sets
zadd, zcard, zcount,zrange(by(score|lex)),
z(inter|union)store [AGGREGATE SUM|MIN|MAX]
b a e c d
1000 100 100 10 -10
HyperLogLog
pfadd, pfcount, pfmerge
a
bc
a
Text2
Text1
There’s more!
Text2
Text1
TransactionsLUA ScriptingNotificationsPub/Sub
sorted setsOperations
RDBAOF
Persistence
or
Text 3
Text2
Text1
RDBAOF
Persistence
AND
Replication
master
slave
slave
slave’
slave’
master
master
slave
master
slave
master
master
ThankYou!
Photo Credithttp://www.soullifestyle.com/sites/default/files/styles/1240/public/products/slideshow/image/Rome%20Floor%20lamp%20Antique%20Bronze%20Dark%20Grey%20Shade.jpg
http://i1.sndcdn.com/artworks-000040878777-risea1-original.jpg?30a2558
http://24.media.tumblr.com/tumblr_m40zdxT4fP1qght35o6_1280.jpg
http://4.bp.blogspot.com/-SZyqJk4rspw/Ud7jZGvx8YI/AAAAAAAAFPI/Wl8g8AvfQWQ/s1600/Tower+of+Hanoi+-+Chedi+2.jpg
http://www.creativeplayretailer.com/assets/imgrepo/manufacturers/Matryoshka%20Madness%20-%20Cutie%20Matryoshka.jpg
http://weedactivist.com/wp-content/uploads/more.1.png
http://www.dexigner.com/news/image/19712/GM_Seoul_Advanced_Design_Studio
http://universal-info.com/wp-content/uploads/2011/11/choice2.jpg
http://fontawesome.io