top | item 5555346

(no title)

kingfishr | 13 years ago

Hey, this is very close to something I've been needing recently (and in Go, nonetheless).

Is there any way to get a similar thing for a sliding window of a stream? For example, to be able to report (estimated) 90th percentile latencies for server requests in the last 5 minutes, hour, and day.

discuss

order

bmizerany|13 years ago

Yes. I use this for that. Query then Reset every 5 minutes.

kingfishr|13 years ago

Oh, that'll be great! That's not quite the same as a sliding window of last 5 minutes, but it'll definitely work for my use case.

(Intuitively, a sliding window seems very hard/impossible -- how do you discard old events without keeping a complete record?)