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
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Redis - From LAMP to NOSQL
Cloud.tw Meetup
York Tsai
October 11, 2011
More Decks by York Tsai
See All by York Tsai
Real-time Web Application with Socket.IO, Node.js, and Redis
yorktsai
10
3.6k
Other Decks in Programming
See All in Programming
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
340
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
320
関数型プログラミングのメリットって何だろう?
wanko_it
0
180
ローカルLLMでどこまでコードが書けるか -縮小版 / How much code can be written on a local LLM Shortened
kishida
2
200
symfony/aiとlaravel/boost
77web
0
140
ランチタイムLT会3周年!ランチタイムLT会を3年間続けられたお話
y0hgi
1
150
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
470
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
600
ルールを書いて終わらせないハーネスエンジニアリング
yug1224
4
1.6k
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
170
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
17
9.2k
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
130
Featured
See All Featured
BBQ
matthewcrist
89
10k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
Producing Creativity
orderedlist
PRO
348
40k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Claude Code のすすめ
schroneko
67
230k
Prompt Engineering for Job Search
mfonobong
0
380
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
30 Presentation Tips
portentint
PRO
1
350
Deep Space Network (abreviated)
tonyrice
0
230
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
260
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!