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
280
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Redis
A Quick Intro
Akshay Rawat
April 16, 2013
Other Decks in Programming
See All in Programming
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
830
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
190
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
1
610
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
500
RTSPクライアントを自作してみた話
simotin13
0
490
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.1k
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
1.4k
TAKTでAI駆動開発の品質を設計する
j5ik2o
6
930
AutonomyとControlのあいだ:Graflowで記述するAIエージェント協調
myui
0
110
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
630
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
1.2k
AIエージェントの隔離技術の徹底比較
kawayu
0
460
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
290
Color Theory Basics | Prateek | Gurzu
gurzu
0
350
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
420
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
380
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
570
How to make the Groovebox
asonas
2
2.2k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
How GitHub (no longer) Works
holman
316
150k
Music & Morning Musume
bryan
47
7.2k
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