Cancel the Stream or Release the Reader? Those Are Different Decisions
Cancel discards the remaining stream data and requests source cleanup. Releasing a lock leaves the stream for another reader.
Topic · 5 stories
5 stories tagged streams on AI Tamer, newest first.
Cancel discards the remaining stream data and requests source cleanup. Releasing a lock leaves the stream for another reader.
Reading a response consumes its body stream. Clone before the body is locked or disturbed when two consumers need it.
Keep decoder state across byte chunks so a split UTF-8 character survives intact.
When generated chunks arrive faster than downstream code can process them, queues grow. Backpressure gives the producer a signal to slow down, if that signal can reach it.
Redis 8.4 adds optional CLAIM min-idle-time on XREADGROUP—claim idle PEL entries then read new ones in one command (shared COUNT). Idle ms + delivery count come back when CLAIM is used; XACK still required. ~22.5× vs XAUTOCLAIM is Redis-reported on their stress setup.