Skip to content

Slow processing time for requests with files #92

@tomer953

Description

@tomer953

Hi,

I have/upload endpoint using busboy library.
the idea is to use node-streams in order to process the file fast as possible (and stream it to another service)

in the very beginning of my function, I print some msg (ie: inside upload)
if i'm using the ntlm() middleware - the output is being delayed. and for big files - it can take a couple of minutes.
I guess it related to the handshake mechanisem - which involes sending the request back and forth before actually pass the middleware.

without ntlm()
image

2ms from the request recieved until the upload function init msg

with ntlm()
image
~25 seconds for the same process

I wonder if this something we can improve? (ie ignoring the form-data body or something?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions