seneca
seneca copied to clipboard
Why request and response transmission time is 500ms?
plugin: seneca-web-adapter-express
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
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.