Project

General

Profile

Actions

Feature #7082

open

redis: support EVE output to a Redis stream

Added by Sascha Steinbiss 3 months ago. Updated 3 months ago.

Status:
In Review
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:
C

Description

Redis has a (recently added?) feature called streams (https://redis.io/docs/latest/develop/data-types/streams/) which implements "a data structure that acts like an append-only log but also implements several operations to overcome some of the limits of a typical append-only log. These include random access in O(1) time and complex consumption strategies, such as consumer groups. You can use streams to record and simultaneously syndicate events in real time." Sounds a bit Kafka-like. Redis streams offer various useful access patterns that go beyond push/pop as done in channels (e.g. XREAD/XRANGE).

Push interaction with streams takes place via XADD operations. Sounds like this should be easy to implement via hiredis and useful in practice.

Actions

Also available in: Atom PDF