Hi everyone,
performance-related concerns regarding Node-RED. Specifically, I’d like to know if Node-RED has an LRU (Least Recently Used) cache mechanism implemented?
While reviewing the setup, I noticed that the lru-cache
package is installed, which appears to be a peer dependency of the mqtt
module. However, it’s not immediately clear whether this package is actively used by Node-RED itself for caching purposes or is limited to MQTT functionality.
Additionally, I’m curious about how Node-RED handles memory management for flows. Are there specific strategies in place for clearing or managing the flows stored in memory? For instance:
- Is there a built-in mechanism to unload inactive or unused flows to optimize memory usage?
- How does Node-RED ensure that memory consumption remains stable, particularly in systems with high-flow throughput or prolonged uptime?
Any insights or resources to better understand this aspect of Node-RED’s architecture would be greatly appreciated.
Thanks in advance!