Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Redis - From LAMP to NOSQL
Search
York Tsai
October 11, 2011
Programming
0
290
Redis - From LAMP to NOSQL
Cloud.tw Meetup
York Tsai
October 11, 2011
Tweet
Share
More Decks by York Tsai
See All by York Tsai
Real-time Web Application with Socket.IO, Node.js, and Redis
yorktsai
10
3.5k
Other Decks in Programming
See All in Programming
Make Parsers Compatible Using Automata Learning
makenowjust
2
5.4k
小田原でみんなで一句詠みたいな #phpcon_odawara
stefafafan
0
350
Compose Hot Reload is here, stop re-launching your apps! (Android Makers 2025)
zsmb
1
550
サービスクラスのありがたみを発見したときの思い出 #phpcon_odawara
77web
4
690
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
110
Making TCPSocket.new "Happy"!
coe401_
1
1.9k
Building Scalable Mobile Projects: Fast Builds, High Reusability and Clear Ownership
cyrilmottier
2
310
ComposeでWebアプリを作る技術
tbsten
0
120
RuboCop: Modularity and AST Insights
koic
2
1.6k
カオスに立ち向かう小規模チームの装備の選択〜フルスタックTSという装備の強み _ 弱み〜/Choosing equipment for a small team facing chaos ~ Strengths and weaknesses of full-stack TS~
bitkey
1
100
Ruby's Line Breaks
yui_knk
2
1.3k
AIコーディングワークフローの試行 〜AIエージェント×ワークフローでの自動化を目指して〜
rkaga
3
3.8k
Featured
See All Featured
Writing Fast Ruby
sferik
628
61k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.7k
Code Review Best Practice
trishagee
67
18k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
BBQ
matthewcrist
88
9.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
400
Side Projects
sachag
453
42k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.4k
Transcript
York Tsai, http://about.me/yorktsai From LAMP to NoSQL
What is Redis?
REmote DIctionary Server Redistribute
Memcache with rich data structure
Why Redis?
Our Database
None
None
Performance
http://www.ruturaj.net/redis-memcached-tokyo-tyrant-mysql- comparison
http://antirez.com/post/redis-memcached-benchmark.html
Rich Data Structure
None
Well-Documented with 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-World Examples
Cache Statistics https://gist.github.com/1272511
Cache X Recent Records https://gist.github.com/1272508
When not to Use Redis?
If your data cannot fit into memory. (MMap is no
longer supported 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!