Command Execution
How does Redis handle a command from the moment it leaves your client to the moment a response is returned? Explore the atomic execution model and the command lifecycle.
Network Receive
Redis receives the raw command over a TCP socket.
Command Parsing
The RESP (Redis Serialization Protocol) parser extracts the command and arguments.
Execution Plan
Redis finds the command implementation and validates arguments.
Atomic Execution
The command is executed in the single-threaded engine.
Response Write
The result is sent back to the client.
Real-time Memory Map
Internal Encoding
Value Content
Internal Encoding
Value Content
No commands executed yet...
Redis uses a simple request-response protocol called RESP. It's human-readable and easy to parse.
This format allows Redis to know exactly how many bytes to read from the network before starting to parse, making it extremely efficient.