Wiki: Redis Modules and The Joy of specificity
For agents: Markdown version · Wiki index · Explore
- Speaker: Adam Lev Libfeld
- Event: Reversim Summit 2017
- Video: https://www.youtube.com/watch?v=_EUMawqEfyc
- Transcript: /transcripts/2017/06-_EUMawqEfyc.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Databases, Performance, Architecture
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker explores the capabilities and architecture of Redis Modules, highlighting how they allow developers to extend the in-memory database with custom logic running right next to the data. By bringing computation close to storage, developers can achieve massive performance improvements compared to external application logic. The talk demonstrates how simple it is to write lightweight modules to handle specific tasks and custom data structures. Ultimately, the audience learns how to leverage Redis Modules to build high-performance, tailored database features.
Key points
- 0:00 The speaker introduces the topic of Redis and shares a humorous opening about contracting work.
- 1:00 The speaker presents the ideal architectural dream where computation and data reside on the exact same thread and memory.
- 2:17 While Redis is extremely fast as an in-memory key-value store, it traditionally lacked built-in complex features to keep it lean and fast.
- 3:17 Redis Modules allow developers to extend the database core by running custom logic and indexes directly where the data lives.
- 4:23 Moving a specific feature implementation from Python to a custom Redis module increased transaction throughput dramatically.
- 5:31 Various advanced modules for full-text search, neural networks, and graphs are already available or can be custom-written in C.
Takeaways
- Move your business logic closer to the database using modules to drastically reduce latency and network overhead.
- Use Redis Modules when standard data structures and built-in commands are insufficient for your specific performance needs.
- Writing custom modules requires proficiency in C, but the boilerplate code needed to get started is remarkably small.
Questions this talk answers
- How do Redis Modules improve application performance compared to traditional external business logic?
- What language is used to write custom Redis modules?
- How can developers handle complex data indexing and search operations inside Redis?
Technologies
Redis, Python, C
Tags
backend development, c, database performance, in-memory database, redis