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.

Streams: the new Redis data structure

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…


Redis hosting, monitoring and performance tuning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store