Home / Companies / Dragonfly / Blog / Post Details
Content Deep Dive

Leveraging the power of Lua scripting with Dragonfly

Blog post from Dragonfly

Post Details
Company
Date Published
Author
Vlad Oleshko
Word Count
1,713
Language
English
Hacker News Points
42
Summary

Redis developers often use Lua scripting for rate-limiting, custom data types, and intricate transactional logic. However, challenges arise due to long-running scripts blocking the data store, constraints on non-atomic script execution, single-threaded architecture, and horizontal scaling issues. Dragonfly is a drop-in replacement for Redis that addresses these limitations with its vertically scalable, multi-threaded, asynchronous architecture. It provides better performance for long-running or computationally heavy scripts, special optimizations for write-heavy scripts, the ability to scale Lua scripts vertically, and offers a way to run Lua scripts non-atomically. Additionally, Dragonfly can be configured so that certain keys are not evictable, providing more control over data storage compared to Redis.