Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
memory
  as the
new disk
☞redis
   tim lossen
    @nosqleu
“memory is
the new disk,
  disk is the
  new tape”
  — jim gray
strengths
harddisk
- durability
- capacity
- sequential access (= “tape”)
memory	 	
- random access
- low latency
relative latency

register              0.1

 cache                   1

memory                 10

harddisk        1.000....
relative latency

register              0.1

 cache                   1

memory                 10

harddisk        1.000....
flickr.com/photos/36688133@N00/3655892919
berlin - london



easyjet         1 hour
berlin - london

 f-16         6 minutes

easyjet         1 hour
berlin - london

  f-16         6 minutes

easyjet          1 hour

eurostar        10 hours
berlin - london

   f-16          6 minutes

 easyjet           1 hour

 eurostar         10 hours

broken car       114 y...
flickr.com/photos/64498037@N00/3107322938
flickr.com/photos/64498037@N00/3107322938
redis

   flickr.com/photos/atzu/2645776918
benchmark



4897 GET/s
5128 SET/s

      code.google.com/p/redis/wiki/Benchmarks
flickr.com/photos/mbiddulph/3836727468
sheeva plug




  flickr.com/photos/mbiddulph/3836727468
sheeva plug




$99flickr.com/photos/mbiddulph/3836727468
features
data structures
-   integers, strings
-   lists, sets, hashes
-   channels
atomic operations
-   get, set, increm...
features
virtual memory
  -   keys always in memory
  -   values swapped in as needed
durability
  -   append-only log file...
implementation

-   10k lines of pure ansi c poetry
-   no erlang, no javascript, no xml,
    no map-reduce, no hash rings...
clients

-   redis-cli, telnet
-   c, c#
-   ruby, python, perl
-   java, scala
-   php
-   [many more ...]
summary

-   don’t cross the red line
-   avoid magic


-   redis is simple & very flexible
summary

-   don’t cross the red line
-   avoid magic


-   redis is simple & very flexible
-   ..... and pretty fast as we...
q&a
thanx!
  ❦



         @tlossen
links
slideshare.net/guest22d4179/
latency-trumps-all


code.google.com/p/redis
github.com/antirez/redis
rediscookbook.org
one-minute install

> wget redis.tgz
> tar xzf redis.tgz
> cd redis
> make
> ./redis-server
Redis -- Memory as the New Disk
Redis -- Memory as the New Disk
Upcoming SlideShare
Loading in …5
×

Redis -- Memory as the New Disk

18,577 views

Published on

lightning talk at nosqleu 2010 (london)

http://nosqleurope.com/

Published in: Technology

Redis -- Memory as the New Disk

  1. memory as the new disk
  2. ☞redis tim lossen @nosqleu
  3. “memory is the new disk, disk is the new tape” — jim gray
  4. strengths harddisk - durability - capacity - sequential access (= “tape”) memory - random access - low latency
  5. relative latency register 0.1 cache 1 memory 10 harddisk 1.000.000 “latency trumps all” — chris saari
  6. relative latency register 0.1 cache 1 memory 10 harddisk 1.000.000 “latency trumps all” — chris saari
  7. flickr.com/photos/36688133@N00/3655892919
  8. berlin - london easyjet 1 hour
  9. berlin - london f-16 6 minutes easyjet 1 hour
  10. berlin - london f-16 6 minutes easyjet 1 hour eurostar 10 hours
  11. berlin - london f-16 6 minutes easyjet 1 hour eurostar 10 hours broken car 114 years
  12. flickr.com/photos/64498037@N00/3107322938
  13. flickr.com/photos/64498037@N00/3107322938
  14. redis flickr.com/photos/atzu/2645776918
  15. benchmark 4897 GET/s 5128 SET/s code.google.com/p/redis/wiki/Benchmarks
  16. flickr.com/photos/mbiddulph/3836727468
  17. sheeva plug flickr.com/photos/mbiddulph/3836727468
  18. sheeva plug $99flickr.com/photos/mbiddulph/3836727468
  19. features data structures - integers, strings - lists, sets, hashes - channels atomic operations - get, set, increment - push, pop ...
  20. features virtual memory - keys always in memory - values swapped in as needed durability - append-only log file - background snapshots replication
  21. implementation - 10k lines of pure ansi c poetry - no erlang, no javascript, no xml, no map-reduce, no hash rings, no merkle trees, no paxos, no vector clocks, no gossip protocol, no auto scaling, no friggin magic
  22. clients - redis-cli, telnet - c, c# - ruby, python, perl - java, scala - php - [many more ...]
  23. summary - don’t cross the red line - avoid magic - redis is simple & very flexible
  24. summary - don’t cross the red line - avoid magic - redis is simple & very flexible - ..... and pretty fast as well☺
  25. q&a
  26. thanx! ❦ @tlossen
  27. links slideshare.net/guest22d4179/ latency-trumps-all code.google.com/p/redis github.com/antirez/redis rediscookbook.org
  28. one-minute install > wget redis.tgz > tar xzf redis.tgz > cd redis > make > ./redis-server

×