Integration
Automate with Redis
Redis powers the performance-critical layers of your application. NVS automates the operational workflows around Redis — monitoring memory and latency, triggering cache invalidation, and alerting on queue depth spikes.
Use Cases
When Redis memory usage exceeds 80% of the allocated maximum, the infrastructure team is alerted in Slack and PagerDuty is paged if usage crosses 95%.
Trigger
Every 5 Minutes
schedule.cron
Frequent memory check ensures early warning before eviction starts.
Query Redis Memory
http.request
Redis INFO memory command executed via monitoring endpoint.
IF
Usage > 80%?
nvs.condition
Checks whether memory usage is above the alert threshold.
NO
Output
Done
nvs.end
Memory usage is healthy. No action needed.
YES
Alert Infrastructure Team
slack.message
Slack alert: Redis instance, memory used, max memory, and usage percentage.
Output
Page On-Call if > 95%
pagerduty.incident
PagerDuty incident created if usage is critically high.
When a Redis message queue depth exceeds 1,000 items, the backend team is alerted in Slack and a new queue consumer process is triggered via the deployment API.
Trigger
Every 2 Minutes
schedule.cron
Queue depth monitoring runs on a tight interval.
Check Queue Depth
http.request
LLEN command executed for monitored queue keys.
IF
Depth > 1000?
nvs.condition
Flags queues backing up faster than consumers are processing.
NO
Output
Done
nvs.end
Queue depth is within normal operating range.
YES
Trigger Additional Consumer
http.request
Scale-up API called to start an additional queue consumer process.
Output
Alert #backend
slack.message
Slack alert: queue name, depth, and scale-up action triggered.
When a critical database record is updated in PostgreSQL, the corresponding Redis cache key is invalidated automatically, preventing stale data from being served.
Trigger
DB Record Updated
postgresql.trigger
Fires when a row in a cached table is updated.
Identify Cache Key
nvs.set
Redis cache key derived from table name and primary key value.
Delete Cache Key
http.request
Redis DEL command executed for the affected cache key.
Output
Log Invalidation
google.sheets
Cache invalidation event logged with key, record ID, and timestamp.