redis-server is the daemon process that runs the Redis instance, reads the config file, and listens on a port (default 6379). redis-cli is the command-line client that connects to a running server. Key redis-cli flags worth knowing: --scan (keyspace iteration), --bigkeys (find large keys), --latency (measure latency), --stat (live stats), --pipe (bulk insert via Redis protocol), -n <db> (select database number).
You need to start a local Redis instance for a small feature. Which command would you run, and how would you use redis-cli to set a key and verify it?
If you run redis-cli on a machine where no Redis server is running, what do you see and why?
How would you use redis-cli to confirm that the redis-server you just started is accepting connections on the default port?
During a deployment the service can’t connect to Redis. Walk me through how you’d use redis-server and redis-cli to diagnose whether the server process is up and reachable.
You need to script a health‑check that restarts Redis if it’s down. Explain how you would differentiate between the server binary and the CLI in that script.
A teammate ran redis-cli --pipe and got a timeout. What could be wrong with the redis-server process, and how would you confirm it using both tools?
Our caching layer runs Redis in containers with multiple replicas. Discuss the operational implications of managing redis-server processes versus using redis-cli for admin tasks at scale.
We must roll out a config change that requires restarting redis-server without dropping client connections. How would you coordinate this using redis-cli and what precautions would you take?
Design a monitoring solution that distinguishes between the health of the redis-server daemon and the responsiveness of commands issued via redis-cli.
We are migrating a legacy monolith that runs redis-cli scripts for data migrations to a microservices architecture that runs redis-server as a managed service. What architectural considerations and risks does this shift introduce?
Across several data centers we need a policy that only authorized tooling can start redis-server. How would you design a secure deployment pipeline that controls both the server binary and redis-cli usage?
Discuss the long‑term maintenance trade‑offs of embedding redis-cli commands in CI pipelines versus using a dedicated orchestration layer that interacts with redis-server via APIs.