Redis is often thought of as a “data structure server”, providing a network interface to a few simple data structure primitives. Streams are the first major new general-purpose data structure since Redis introduced sorted sets many years ago. Let’s take a look at one of the major uses for this new structure: modeling time series data.
Redis Streams represent an append-only timeseries of key-value pairs.
Any number of clients can write to a Stream and each time they do they receive a unique ascending ID of the item that was inserted into the timeseries.
Clients reading data can block while…