KnowSheet / Sherlock

Structured, append-only, immutable data persistence layer with publish-subscribe.
2 stars 1 forks source link

Sherlock serve part of data continues #8

Closed sompylasar closed 9 years ago

sompylasar commented 9 years ago

PubSubHTTPEndpoint: Introduced n_min, renamed n to n_max.
 n_min is required to be able to request at least n_min entries even if there were no entries within the recent time frame.

dkorolev commented 9 years ago

Hi @sompylasar ,

Let me close this pull request w/o merging.

Results of my overnight sleep with this idea. We should have two flags:

  1. n for the minimum number of entries to return, as in tail -n 10. The last n entries are returned.
  2. cap for the maximum number of entries to return.

The behavior is:

(Note that the connection is potentially indefinite, in case the stream does yet not have cap entries to output.)

Thanks, Dima