seneca icon indicating copy to clipboard operation
seneca copied to clipboard

Why request and response transmission time is 500ms?

Open Peyton-lee opened this issue 5 years ago • 4 comments

image image

Peyton-lee avatar Sep 12 '19 02:09 Peyton-lee

image image

Peyton-lee avatar Sep 12 '19 02:09 Peyton-lee

plugin: seneca-web-adapter-express

Peyton-lee avatar Sep 12 '19 02:09 Peyton-lee

This issue is more suited to the seneca-web-adapter-express repo. However it would useful to create a reproduction in https://github.com/senecajs/repro to help debug - thanks

rjrodger avatar Sep 30 '19 10:09 rjrodger

FWIW, I added an option to seneca-web-adapter-express to ... stop doing that.

The real problem was with using print('test') with request$ and response$ - turns out it takes a while to serialize these properties. They're also not particularly useful -- they will be stripped during transport. Only use case is if there's a proxy on the same process that needs to do stuff with req/res.

Next major version I'm going to switch the default to disable passing req/res by default. Relevant ticket: https://github.com/senecajs/seneca-web-adapter-express/issues/20 .... I think this one can be closed.

tswaters avatar Dec 30 '19 22:12 tswaters