-
@broker.subscriber(
stream=StreamSub("newimage", max_records=200, maxlen=100, group="mvp", consumer="2")
) With this, I want to limit the size of my Stream in my This is how I start my redis server docker run -d --rm -p 6379:6379 --name redis redis |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@Dronakurl hi again! Indeed, it is a confusing question |
Beta Was this translation helpful? Give feedback.
@Dronakurl hi again! Indeed, it is a confusing question
max_records
is a subscriber option and represents how many messages with can read from stream by one requestmaxlen
is a publisher option to remove old messages at publishing if this limit exceeded