I am using Redis streams and basically have a stream that will append an END sentinel message when it's done. Until then, I basically want to mimic tail -f
which is when I begin a read I want to see all previous logs until the current time and then keep getting new updates from the stream indefinitely.
I realize I can probably replicate this by polling from the last fetched timestamp but was wondering if there is some natively supported way to do this. I could not find one in the docs and it's getting me to wonder if for some reason this is a bad idea
I have tried calling xread
with a very high block count but that did not work as it returns as soon as there are new results