![Page 1: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/1.jpg)
Redis is 10!
Dr. Christoph Zimmermann
redislabs, 11. 8. 2019
![Page 2: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/2.jpg)
2
Für Luca
![Page 3: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/3.jpg)
3
stat /proc/self
• PhD in reflective operating system architectures
• First crush on Linux: kernel 0.95
• Tech support + more @ FraLUG
• AUR package maintainer
• Hobbies include:
– SDLC
– IT security and other forms of black art
– Community liaison / solution architect @ redislabs
![Page 4: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/4.jpg)
4
cat /etc/motd
● What is Redis● Architecture● Features● The application perspective● Summary / outlook
![Page 5: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/5.jpg)
5
uptime
An in-memory multi-model database
Redis
![Page 6: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/6.jpg)
6
cat /etc/group
162CLIENTS IN 48 LANGUAGES
100+HIGHER LEVEL
LIBRARIESAND TOOLS
6.5K+
GITHUB COMMITS
244CONTRIBUTORS
48.6K+
STACK OVERFLOW QUESTIONS
26K+
REDIS GITHUB STARS
![Page 7: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/7.jpg)
7
ls /opt/redis
JSON
Graph
AI
Native Data Structures
StreamsTime-Series
• Dedicated engine for
each data model (vs. API
only)
• Models engines can be
selectively loaded,
according to use case
• All model engines
access the same data,
eliminating the need for
transferring data
between them
Search
![Page 8: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/8.jpg)
8
man redis-server
● Different persistence modes:● Append-only files (AOF)● Snapshots (RDB)
● Cluster: utils/create-cluster/create-cluster
● High availability:
● Via sentinels (src/redis-sentinel) ● Full CAP coverage:
● HA ACID compliance→
![Page 9: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/9.jpg)
9
type which
Lists
[ A → B → C → D → E ]
Hashes
{ A: “foo”, B: “bar”, C: “baz” }
Bitmaps
0011010101100111001010
Strings
"I'm a Plain Text String!”
Bit field
{23334}{112345569}{766538}Key
Streams{id1=time1.seq1(A:“xyz”, B:“cdf”),
d2=time2.seq2(D:“abc”, )}
Hyperloglog
00110101 11001110
Sorted Sets
{ A: 0.1, B: 0.3, C: 100 }
Sets
{ A , B , C , D , E }
Geospatial Indexes
{ A: (51.5, 0.12), B: (32.1, 34.7) }
![Page 10: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/10.jpg)
10
redis-server
Server
hiredis
Language-specific bindings
Module-specific bindings
Application
![Page 11: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/11.jpg)
11
htop
Search – x5
Graph – x400Streams – x500
NoSQL Performance
![Page 12: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/12.jpg)
12
cat hello_world.py
#
# Hello world for redis
#
import redis
def main():
# decode_responses: depending on the Python version
r = redis.Redis(decode_responses=True)
r.set('Hello', 'world')
val = r.get('Hello')
print('Hello: ', val)
if __name__ == '__main__':
exit(main())
![Page 13: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/13.jpg)
13
less ~/dev/redis_graph.py
Graph demo
![Page 14: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/14.jpg)
14
shutdown -H +5
● Outlook (redis 6):● ACLs / user administration● Improved wire protocol● Cluster proxy● Gears: module infrastructure + more
● Popular in-memory NoSQL ● Key/value store multi-modal DB→● Extensibility: modules + more
![Page 15: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/15.jpg)
15
apropos redis
● redis.io: fulls OSS documentation
● antirez.com: Salvatore‘s blog
● github.com/antirez/redis: Redis source code
● redislabs.com/community: community documentation
● redislabs.com/redis-for-dummies: Redis quickstart
● university.redislabs.com: redislabs university
● Planned: hands-on Redis workshop @ PyCon
(de.pycon.org)
![Page 16: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/16.jpg)
16
irssi
Questions?
![Page 17: Redis is 10! · ls /opt/redis JSON Graph AI Native Data Structures Time-Series Streams • Dedicated engine for each data model (vs. API only) • Models engines can be selectively](https://reader030.vdocument.in/reader030/viewer/2022040904/5e772e1f43c8d6065d13ea15/html5/thumbnails/17.jpg)
17
Thank you!
© 2019 CC-BY
Dr. Christoph Zimmermann
monochromec at <ignore>space</ignore>gmail<dot></dot>com