streamnative / bookkeeper-achieved

Apache Bookkeeper
https://bookkeeper.apache.org
Apache License 2.0
3 stars 2 forks source link

ISSUE-2540: Support ledger read method based on the startLedgerId and max bytes #302

Closed sijie closed 3 years ago

sijie commented 3 years ago

Original Issue: apache/bookkeeper#2540


FEATURE REQUEST

  1. Please describe the feature you are requesting. some method like LedgerHandle.readAsync(long startEntryId, long maxBytes) which will try to read ledger until maxBytes meets or maxPos.

  2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). should-have. this can have a better control of response size returned to the caller. and Kafka on Pulsar can handleFetcheRequest better when have this feature.

  3. Provide any additional detail on your proposed use case for this feature.

    • better estimated response size.
    • increase throughtput when origin(start,end) method pass small param
    • no need to guess endPos.

@eolivelli @sijie