Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-5080

Replace usages of ChunkResponder with BodyProducer

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CDAP
    • Labels:
      None
    • Rank:
      1|hzz7lj:

      Description

      Using ChunkResponder to stream data does not take into account the client's rate of consumption. This can lead to data being buffered on Router end, thus causing OOM on Router side. If Router refuses to read data then, the service streaming the data will go OOM.

      BodyProducer streams data only when the client finishes reading of current batch, hence is more amenable to rate control.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ali.anwar Ali Anwar
                Reporter:
                poorna Poorna Chandra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: