justlog icon indicating copy to clipboard operation
justlog copied to clipboard

Try to stream responses to prevent timeouts

Open RAnders00 opened this issue 6 years ago • 2 comments

Some channellogs (forsen e.g.) can grow so big that the request can time out before the server has the response ready for sending. I think it would be quite benefitial if justlog transformed the input line-by-line, writing the transformed lines to the http response as they are generated (streaming), so that the response can start being sent right away after the request is made, and not when the whole file has been transformed in memory.

RAnders00 avatar Feb 06 '19 11:02 RAnders00

I had something like that in logstv https://github.com/gempir/logstv-cassandra/blob/master/api/main.go#L146

There its just for json. Do you think this makes sense though? Just a stream parameter than can be passed?

gempir avatar Feb 06 '19 11:02 gempir

Isn't our current implementation covering this issue?

zneix avatar Jun 22 '21 18:06 zneix