Install the following application in your system to proceed with Redis:
- Redis-x64-5.0.14.1
On the installation process make sure to check the(add the redis to environmental variable) otherwise the redis server wont start After installation, Redis will run locally on the default port 6379.
Use the below command to check whether the Redis server is running:
redis-cli pingPONG
If you receive PONG, Redis is running successfully.
To monitor all Redis commands in real time, use:
redis-cli MONITORThis command displays every operation executed on Redis and is useful for debugging.
MONITOR in production environments as it is very verbose.
| Command | Scope | Impact | Result |
|---|---|---|---|
FLUSHDB |
Current database | Medium | Deletes keys in the selected database only |
FLUSHALL |
Entire server | High | Deletes all keys across all 16 (default) databases |
DEL [key] |
Single key | Low | Deletes only the specified key(s) |
DEL user:101FLUSHDBFLUSHALLBullMQ is a Redis-based queue system used to handle background jobs such as:
- Email sending
- Notifications
- File processing
- Scheduled or delayed tasks
BullMQ runs on Node.js and uses Redis as its backend.
⚠️ Important: BullMQ cannot run directly inside React.js (frontend).
- React.js → Frontend (triggers API requests)
- Node.js → Backend (BullMQ producer & worker)
- Redis → Queue storage
React communicates with BullMQ through backend APIs.
Use the following guide to implement BullMQ in Node.js:
- BullMQ for Node.js: https://hadoan.medium.com/bullmq-for-beginners-a-friendly-practical-guide-with-typescript-examples-eb8064bef1c4
- Redis is used for fast in-memory caching
redis-cli pingchecks server healthMONITORhelps debug cache activityFLUSHDB,FLUSHALL, andDELmanage cache cleanup- BullMQ handles background jobs using Redis
- React.js interacts with BullMQ via a Node.js backend