Redis internals: why it is fast, how it stores data and how it removes expired keys
Redis runs commands on one thread and still handles hundreds of thousands of them per second: the event loop and I/O multiplexing, io-threads since version 6, a keyspace that is a hash table, compact encodings (listpack, intset, skiplist), SDS, and the two ways expired keys get removed. Plus a comparison with Memcached and the places where the slides get it wrong.