Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19905

camel-platform-http-vertx - Streaming mode for message body

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.2.0
    • None
    • Unknown

    Description

      It appears that when you have big HTTP requests then vertx-http server will read all content into memory.

      At first glance it does not seems an easy API to use some kind of streaming mode via java.io.InputStream as the message body type.

      The vertx based Buffer appears to be read entirely into memory.

      io.vertx.ext.web.handler.BodyHandler#create()

      See the following code
      https://github.com/apache/camel/blob/b7eed290f06dc483e67892b3bb1cfccc0a4e1f1e/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java#L276

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment