/plushcap/analysis/dragonfly/dragonfly-leveraging-power-of-lua-scripting

Leveraging the power of Lua scripting with Dragonfly

What's this blog post about?

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.

Company
Dragonfly

Date published
June 12, 2023

Author(s)
Vlad Oleshko

Word count
1713

Language
English

Hacker News points
42


By Matt Makai. 2021-2024.