Overview of Rule-DB mode with Redis plugin
masterThe liteflow-rule-db-redis plugin implements the Rule-DB mode where Redis serves as the authoritative source for rules and scripts. It leverages the LiteFlow core runtime (indexing, caching, synchronization, and reconciliation) and provides low-latency rule updates via Redis Pub/Sub, change logs via ZSet (using score=seq for sequence tracking), and atomic publishing via Lua scripts.
Key Components:
RedisRuleRepository: Implements the coreRuleRepositorySPI.- Redisson: Manages connections and automatically identifies single, sentinel, or cluster modes.
- ZSet: Used for change logs to support
fetchChangesSinceoperations and gap detection, aligning with SQL-basedchange_logsemantics. - RTopic: Used for rule subscription via Pub/Sub.