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
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
620
教えて!スクラムコーチ品質とスピードのバランスはどうすりゃいいの?
pinboro
0
120
otelcol receiver 自作RTA / Pepabo Tech Conference #22 春のSREまつり
arthur1
0
1k
TSKaigi 2024 - 新サービス Progate Path の演習で TypeScript を採用して見えた教材観点からの利点と課題
makotoshimazu
1
220
ペパボOpenTelemetry革命
pyama86
2
1.1k
Embedding it into Ruby code
soutaro
2
330
Dev ContainersとTestcontainers
bells17
3
100
How to improve maintainability and readability of your automated tests? ( #scrumniigata )
teyamagu
PRO
1
130
An adventure of Happy Eyeballs
coe401_
1
240
The Design of Everyday APIs - PyCon 2024
roguelynn
1
190
Sheets API使ってみた
toshi0383
2
180
[RubyKaigi 2024] Ruby Mixology 101: adding shots of PHP, Elixir, and more
palkan
0
130
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
The Mythical Team-Month
searls
217
42k
Atom: Resistance is Futile
akmur
260
25k
Designing the Hi-DPI Web
ddemaree
276
33k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
Optimising Largest Contentful Paint
csswizardry
13
2.4k
Adopting Sorbet at Scale
ufuk
69
8.6k
Embracing the Ebb and Flow
colly
80
4.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
41
4.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Agile that works and the tools we love
rasmusluckow
325
20k
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