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
Search
Akshay Rawat
April 16, 2013
Programming
2
250
Redis
A Quick Intro
Akshay Rawat
April 16, 2013
Tweet
Share
Other Decks in Programming
See All in Programming
法律の脱レガシーに学ぶフロントエンド刷新
oguemon
5
740
ML.NETで始める機械学習
ymd65536
0
120
Pulsar2 を雰囲気で使ってみよう
anoken
0
240
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
160
2024年のkintone API振り返りと2025年 / kintone API look back in 2024
tasshi
0
220
コミュニティ駆動 AWS CDK ライブラリ「Open Constructs Library」 / community-cdk-library
gotok365
2
150
ファインディの テックブログ爆誕までの軌跡
starfish719
2
1.1k
Open source software: how to live long and go far
gaelvaroquaux
0
640
『GO』アプリ データ基盤のログ収集システムコスト削減
mot_techtalk
0
130
プログラミング言語学習のススメ / why-do-i-learn-programming-language
yashi8484
0
130
Conform を推す - Advocating for Conform
mizoguchicoji
3
690
楽しく向き合う例外対応
okutsu
0
150
Featured
See All Featured
Docker and Python
trallard
44
3.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Writing Fast Ruby
sferik
628
61k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
51k
What's in a price? How to price your products and services
michaelherold
244
12k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
550
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Transcript
Redis
DATA STRUCTURES Strings, Lists, Sets, Sorted Sets, Hashes IPC Shared
Memory, MQs, Semaphores, PubSub Caching Expiration, Eviction Policies
Time Complexity O(1) < O(log(n)) < O(n) < O(n^2) ..
Containers String, Doubly Linked Lists, Skip Lists, Hash Tables ... Guaranteed, Mathematically Predictable Specialized C data structures Varies based on storage pattern
LIST Data Structure: Doubly Linked Lists Strengths: Time Complexity O(1)
operations LPUSH LPOP RPUSH RPOP LPUSHX RPUSHX LTRIM Capped collections: Logs, Activity Feeds
LIST Strengths: IPC operations BLPOP BRPOP BRPOPLPUSH Blocking Atomic EM
implementations Light weight APMQ replacement
SET Strengths: Set Operations SINTER SUNION SISMEMBER Is a friend?
Common Friends. All friends of A & B. People who bought this, also bought ... Data filtering - eg. Blog Tags, N Dimension
SORTED SET Strengths: Scores and Ranks ZRANGEBYSCORE ZRANGE ZCOUNT ZRANK
ZREMRANGEBYSCORE ZREMRANGEBYRANK Leader boards - Top something lists. Priority Queues
IPC Named Channels. ActiveSupport Notifications like API Pub Sub SUBSCRIBE
PSUBSCRIBE PUBLISH Simple Semaphores / Distributed Locks String SETNX
In Short Redis is feature rich, but not a swiss
knife ~Time & Memory complexity Single Threaded / Single Core Utilization Memory complexity is a funky blackbox Persistence strategy - a work in progress