From LAMP to NoSQL          York Tsai,  http://about.me/yorktsai
What is Redis?
REmote DIctionary Server      Redistribute
Memcachewith rich data structure
Why Redis?
Our Database
Performance
http://www.ruturaj.net/redis-memcached-tokyo-tyrant-mysql-                         comparison
http://antirez.com/post/redis-memcached-benchmark.html
Rich Data Structure
Well-Documentedwith Time-Complexity!!
Zero-Configuration    > Make
Examples
Cache a value
Cache a value, DEL/EXPIRE a set    redis > EXPIRE myhash 3600    (integer) 1    redis > DEL myhash    (integer) 1
List / Queue / Stack
Sets
Sorted Sets
Real-WorldExamples
Cache Statisticshttps://gist.github.com/1272511
Cache X Recent Recordshttps://gist.github.com/1272508
When not to Use   Redis?
If your data cannot   fit into memory.(MMap is no longersupported after 2.6)
Frequently Asked   Questions
Multi-core?Open multiple instances
Persistence?Append-only Files (Or Snapshot)
Replication?Master-Slave
Transaction?MULTI / EXEC +   WATCH
Not in this talk●   Pub/Sub (publish / subscribe)●   Redis Cluster (Incoming)
Thank You!
Redis - From LAMP to NoSQL (CloudTW meetup-14)
Redis - From LAMP to NoSQL (CloudTW meetup-14)
Redis - From LAMP to NoSQL (CloudTW meetup-14)
Upcoming SlideShare
Loading in …5
×

Redis - From LAMP to NoSQL (CloudTW meetup-14)

1,779 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,779
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
23
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Redis - From LAMP to NoSQL (CloudTW meetup-14)

  1. 1. From LAMP to NoSQL York Tsai, http://about.me/yorktsai
  2. 2. What is Redis?
  3. 3. REmote DIctionary Server Redistribute
  4. 4. Memcachewith rich data structure
  5. 5. Why Redis?
  6. 6. Our Database
  7. 7. Performance
  8. 8. http://www.ruturaj.net/redis-memcached-tokyo-tyrant-mysql- comparison
  9. 9. http://antirez.com/post/redis-memcached-benchmark.html
  10. 10. Rich Data Structure
  11. 11. Well-Documentedwith Time-Complexity!!
  12. 12. Zero-Configuration > Make
  13. 13. Examples
  14. 14. Cache a value
  15. 15. Cache a value, DEL/EXPIRE a set redis > EXPIRE myhash 3600 (integer) 1 redis > DEL myhash (integer) 1
  16. 16. List / Queue / Stack
  17. 17. Sets
  18. 18. Sorted Sets
  19. 19. Real-WorldExamples
  20. 20. Cache Statisticshttps://gist.github.com/1272511
  21. 21. Cache X Recent Recordshttps://gist.github.com/1272508
  22. 22. When not to Use Redis?
  23. 23. If your data cannot fit into memory.(MMap is no longersupported after 2.6)
  24. 24. Frequently Asked Questions
  25. 25. Multi-core?Open multiple instances
  26. 26. Persistence?Append-only Files (Or Snapshot)
  27. 27. Replication?Master-Slave
  28. 28. Transaction?MULTI / EXEC + WATCH
  29. 29. Not in this talk● Pub/Sub (publish / subscribe)● Redis Cluster (Incoming)
  30. 30. Thank You!

×