Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:04:24 +0000.
Date:Sunday, 1 February 2015 18:52:46 UTC.
The addition of JS middleware is a very exciting development. I have a question about a specific use case and how the middleware will perform. In our case, the body payload will need to be parsed and modified (properties renamed and in some cases deleted). Will each request have its own sandbox created or is there one sandbox that is created and shared between all requests. Our primary concern is performance and JS is not the speediest at encoding/decoding JSON. One alternative is to build middleware in Go to handle the decoding and re-encoding. Is there the capability to add our own Go middleware or would we simply fork the current code base if Go was the path we wanted to take for this particular functionality?